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