Class NullAnalysisHistory
- java.lang.Object
-
- io.jenkins.plugins.analysis.core.model.NullAnalysisHistory
-
- All Implemented Interfaces:
History
,Iterable<edu.hm.hafner.echarts.BuildResult<AnalysisBuildResult>>
public class NullAnalysisHistory extends Object implements History
Empty build history.- Author:
- Ullrich Hafner
-
-
Constructor Summary
Constructors Constructor Description NullAnalysisHistory()
-
Method Summary
All Methods Instance Methods Concrete 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()
String
toString()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Method Detail
-
getBaselineAction
public Optional<ResultAction> 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<AnalysisResult> 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<AnalysisResult> 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).
-
getIssues
public edu.hm.hafner.analysis.Report getIssues()
Description copied from interface:History
Returns the issues of the historical result. If there is no historical build found, then an empty set of issues is returned.
-
iterator
@NonNull public Iterator<edu.hm.hafner.echarts.BuildResult<AnalysisBuildResult>> iterator()
- Specified by:
iterator
in interfaceHistory
- Specified by:
iterator
in interfaceIterable<edu.hm.hafner.echarts.BuildResult<AnalysisBuildResult>>
-
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
-
-