Klasse BuildActionIterator<T extends io.jenkins.plugins.util.BuildAction<?>>

java.lang.Object
io.jenkins.plugins.echarts.BuildActionIterator<T>
Typparameter:
T - type of the action that stores the result
Alle implementierten Schnittstellen:
Iterator<edu.hm.hafner.echarts.BuildResult<T>>

public class BuildActionIterator<T extends io.jenkins.plugins.util.BuildAction<?>> extends Object implements Iterator<edu.hm.hafner.echarts.BuildResult<T>>
Iterates over a collection of builds that contain results of a given generic type. These results are available via a given subtype of 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.
Autor:
Ullrich Hafner
  • Konstruktordetails

    • BuildActionIterator

      public BuildActionIterator(Class<T> actionType, Optional<T> baseline)
      Creates a new iterator that selects the action of the given type actionType.
      Parameter:
      actionType - the type of the actions to select
      baseline - the baseline to start from
    • BuildActionIterator

      public 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.
      Parameter:
      actionType - the type of the actions to select
      baseline - the baseline to start from
      filter - a predicate to filter the build actions of a build so that the selected action is unique
  • Methodendetails

    • hasNext

      public boolean hasNext()
      Angegeben von:
      hasNext in Schnittstelle Iterator<T extends io.jenkins.plugins.util.BuildAction<?>>
    • next

      public edu.hm.hafner.echarts.BuildResult<T> next()
      Angegeben von:
      next in Schnittstelle Iterator<T extends io.jenkins.plugins.util.BuildAction<?>>