Package io.jenkins.plugins.echarts
Class ActionSelector<T extends io.jenkins.plugins.util.BuildAction<?>>
java.lang.Object
io.jenkins.plugins.echarts.ActionSelector<T>
- Type Parameters:
 T- the type of the action to select
public class ActionSelector<T extends io.jenkins.plugins.util.BuildAction<?>>
extends Object
implements Function<Run<?,?>,Optional<T>>  
Selects a specific action from the all actions that are attached to the given build. The action is selected by a
 generic predicate that works on the expected concrete action type. If the baseline build does not contain the action
 then previous builds will be inspected until the action is found.
- 
Constructor Summary
ConstructorsConstructorDescriptionActionSelector(Class<T> actionType) Creates a new instance ofActionSelector.ActionSelector(Class<T> actionType, Predicate<? super T> predicate) Creates a new instance ofActionSelector. - 
Method Summary
 
- 
Constructor Details
- 
ActionSelector
Creates a new instance ofActionSelector. This selector will select the first action of the given type that matches.- Parameters:
 actionType- the type of the action to select
 - 
ActionSelector
Creates a new instance ofActionSelector.- Parameters:
 actionType- the type of the action to selectpredicate- the predicate that selects the action (if there are multiple actions of the same type)
 
 - 
 - 
Method Details
- 
apply
 - 
findFirst
Searches in the build history for the first action that matches the specified predicate.- Parameters:
 baseline- the baseline build to start the search from- Returns:
 - the action, if found
 
 
 -