Class NullReportHistory
- java.lang.Object
-
- io.jenkins.plugins.reporter.model.NullReportHistory
-
- All Implemented Interfaces:
History
,Iterable<edu.hm.hafner.echarts.BuildResult<ReportResult>>
public class NullReportHistory extends Object implements History
-
-
Constructor Summary
Constructors Constructor Description NullReportHistory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<ReportAction>
getBaselineAction()
Returns the baseline action (if already available).Optional<ReportResult>
getBaselineResult()
Returns the baseline result (if already available).Optional<Run<?,?>>
getBuild()
Returns the build that contains the historical result (if there is any).Report
getReport()
Returns the report of the historical result.Optional<ReportResult>
getResult()
Returns the historical result (if there is any).boolean
hasMultipleResults()
Returns whether this history has more than one result.Iterator<edu.hm.hafner.echarts.BuildResult<ReportResult>>
iterator()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getBaselineAction
public Optional<ReportAction> getBaselineAction()
Description copied from interface:History
Returns the baseline action (if already available).- Specified by:
getBaselineAction
in interfaceHistory
- Returns:
- the baseline action
-
getBaselineResult
public Optional<ReportResult> getBaselineResult()
Description copied from interface:History
Returns the baseline result (if already available).- Specified by:
getBaselineResult
in interfaceHistory
- Returns:
- the baseline result
-
getResult
public Optional<ReportResult> getResult()
Description copied from interface:History
Returns the historical result (if there is any).
-
getBuild
public Optional<Run<?,?>> getBuild()
Description copied from interface:History
Returns the build that contains the historical result (if there is any).
-
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.
-
iterator
@NonNull public Iterator<edu.hm.hafner.echarts.BuildResult<ReportResult>> iterator()
- Specified by:
iterator
in interfaceHistory
- Specified by:
iterator
in interfaceIterable<edu.hm.hafner.echarts.BuildResult<ReportResult>>
-
hasMultipleResults
public boolean hasMultipleResults()
Description copied from interface:History
Returns whether this history has more than one result.- Specified by:
hasMultipleResults
in interfaceHistory
- Returns:
true
if there are multiple results,false
otherwise
-
-