Class NullReportHistory

    • Constructor Detail

      • NullReportHistory

        public NullReportHistory()
    • Method Detail

      • getResult

        public Optional<ReportResult> getResult()
        Description copied from interface: History
        Returns the historical result (if there is any).
        Specified by:
        getResult in interface History
        Returns:
        the historical result
      • getBuild

        public Optional<Run<?,​?>> getBuild()
        Description copied from interface: History
        Returns the build that contains the historical result (if there is any).
        Specified by:
        getBuild in interface History
        Returns:
        the historical result
      • getReport

        public Report getReport()
        Description copied from interface: History
        Returns the report of the historical result. If there is no historical build found, then an empty report is returned.
        Specified by:
        getReport in interface History
        Returns:
        the report of the historical build
      • hasMultipleResults

        public boolean hasMultipleResults()
        Description copied from interface: History
        Returns whether this history has more than one result.
        Specified by:
        hasMultipleResults in interface History
        Returns:
        true if there are multiple results, false otherwise