Package io.jenkins.plugins.echarts
Class GenericBuildActionIterator.BuildActionIterable<A extends io.jenkins.plugins.util.BuildAction<?>,R>
java.lang.Object
io.jenkins.plugins.echarts.GenericBuildActionIterator.BuildActionIterable<A,R>
- Type Parameters:
A- the type of the actionR- the type of the result
- All Implemented Interfaces:
Iterable<edu.hm.hafner.echarts.BuildResult<R>>
- Enclosing class:
- GenericBuildActionIterator<A extends io.jenkins.plugins.util.BuildAction<?>,
R>
public static class GenericBuildActionIterator.BuildActionIterable<A extends io.jenkins.plugins.util.BuildAction<?>,R>
extends Object
implements Iterable<edu.hm.hafner.echarts.BuildResult<R>>
An iterable that provides an iterator for specific values of build that should be rendered in a trend chart. The
build values must be stored in a concrete subclass of
BuildAction. The property that contains the build value
is selected by a generic predicate.-
Constructor Summary
ConstructorsConstructorDescriptionBuildActionIterable(Class<A> actionType, A latestAction, Predicate<A> filter, Function<A, R> function) Creates a new instance ofGenericBuildActionIterator.BuildActionIterable.BuildActionIterable(Class<A> actionType, Optional<A> latestAction, Predicate<A> filter, Function<A, R> function) Creates a new instance ofGenericBuildActionIterator.BuildActionIterable. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
BuildActionIterable
public BuildActionIterable(Class<A> actionType, A latestAction, Predicate<A> filter, Function<A, R> function) Creates a new instance ofGenericBuildActionIterator.BuildActionIterable.- Parameters:
actionType- the type of the action to selectlatestAction- the latest action that will be used as starting point for the sequence of resultsfilter- filter that selects the action (if there are multiple actions of the same type)function- the supplier that extracts the specific results from the action
-
BuildActionIterable
public BuildActionIterable(Class<A> actionType, Optional<A> latestAction, Predicate<A> filter, Function<A, R> function) Creates a new instance ofGenericBuildActionIterator.BuildActionIterable.- Parameters:
actionType- the type of the action to selectlatestAction- the latest action that will be used as starting point for the sequence of resultsfilter- filter that selects the action (if there are multiple actions of the same type)function- the supplier that extracts the specific results from the action
-
-
Method Details