Interface History
-
- All Superinterfaces:
Iterable<edu.hm.hafner.echarts.BuildResult<ReportResult>>
- All Known Implementing Classes:
NullReportHistory
,ReportHistory
public interface History extends Iterable<edu.hm.hafner.echarts.BuildResult<ReportResult>>
History of analysis results.
-
-
Method Summary
All Methods Instance Methods Abstract 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 interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getBaselineAction
Optional<ReportAction> getBaselineAction()
Returns the baseline action (if already available).- Returns:
- the baseline action
-
getBaselineResult
Optional<ReportResult> getBaselineResult()
Returns the baseline result (if already available).- Returns:
- the baseline result
-
getResult
Optional<ReportResult> getResult()
Returns the historical result (if there is any).- Returns:
- the historical result
-
getBuild
Optional<Run<?,?>> getBuild()
Returns the build that contains the historical result (if there is any).- Returns:
- the historical result
-
getReport
Report getReport()
Returns the report of the historical result. If there is no historical build found, then an empty report is returned.- Returns:
- the report of the historical build
-
iterator
@NonNull Iterator<edu.hm.hafner.echarts.BuildResult<ReportResult>> iterator()
- Specified by:
iterator
in interfaceIterable<edu.hm.hafner.echarts.BuildResult<ReportResult>>
-
hasMultipleResults
boolean hasMultipleResults()
Returns whether this history has more than one result.- Returns:
true
if there are multiple results,false
otherwise
-
-