Package io.jenkins.plugins.echarts
Klasse ActionSelector<T extends io.jenkins.plugins.util.BuildAction<?>>
java.lang.Object
io.jenkins.plugins.echarts.ActionSelector<T>
- Typparameter:
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.
-
Konstruktorübersicht
KonstruktorBeschreibungActionSelector
(Class<T> actionType) Creates a new instance ofActionSelector
.ActionSelector
(Class<T> actionType, Predicate<? super T> predicate) Creates a new instance ofActionSelector
. -
Methodenübersicht
-
Konstruktordetails
-
ActionSelector
Creates a new instance ofActionSelector
. This selector will select the first action of the given type that matches.- Parameter:
actionType
- the type of the action to select
-
ActionSelector
Creates a new instance ofActionSelector
.- Parameter:
actionType
- the type of the action to selectpredicate
- the predicate that selects the action (if there are multiple actions of the same type)
-
-
Methodendetails
-
apply
-
findFirst
Searches in the build history for the first action that matches the specified predicate.- Parameter:
baseline
- the baseline build to start the search from- Gibt zurück:
- the action, if found
-