T - type of the action that stores the resultpublic class BuildActionIterator<T extends io.jenkins.plugins.util.BuildAction<?>> extends Object implements Iterator<edu.hm.hafner.echarts.BuildResult<T>>
BuildAction that has to be attached to each build of the selected job. A new iterator
starts from a baseline build where it selects the attached action of the given type. Then it moves back in the build
history until no more builds are available.| Constructor and Description |
|---|
BuildActionIterator(Class<T> actionType,
Optional<T> baseline)
Creates a new iterator that selects the action of the given type
actionType. |
BuildActionIterator(Class<T> actionType,
Optional<T> baseline,
Predicate<? super T> filter)
Creates a new iterator that selects actions of the given type
actionType and filters them using the
specified Predicate. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
edu.hm.hafner.echarts.BuildResult<T> |
next() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removepublic BuildActionIterator(Class<T> actionType, Optional<T> baseline)
actionType.actionType - the type of the actions to selectbaseline - the baseline to start frompublic BuildActionIterator(Class<T> actionType, Optional<T> baseline, Predicate<? super T> filter)
actionType and filters them using the
specified Predicate.actionType - the type of the actions to selectbaseline - the baseline to start fromfilter - a predicate to filter the build actions of a build so that the selected action is uniqueCopyright © 2016–2021. All rights reserved.