Class GenericBuildActionIterator<A extends io.jenkins.plugins.util.BuildAction<?>,R>

java.lang.Object
io.jenkins.plugins.echarts.GenericBuildActionIterator<A,R>
Type Parameters:
A - the type of the action
R - the type of the result
All Implemented Interfaces:
Iterator<edu.hm.hafner.echarts.BuildResult<R>>

public class GenericBuildActionIterator<A extends io.jenkins.plugins.util.BuildAction<?>,R> extends Object implements Iterator<edu.hm.hafner.echarts.BuildResult<R>>
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.
Author:
Ullrich Hafner
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<A extends io.jenkins.plugins.util.BuildAction<?>>
    • next

      public edu.hm.hafner.echarts.BuildResult<R> next()
      Specified by:
      next in interface Iterator<A extends io.jenkins.plugins.util.BuildAction<?>>