Object UnlockCondition.Companion
-
- All Implemented Interfaces:
public class UnlockCondition.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static UnlockCondition.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final static UnlockConditionafterTools(String toolNames)Create a condition that unlocks after the specified tools have been called. final static UnlockConditionafterTools(List<Tool> tools)Create a condition that unlocks after the specified tools have been called. final static UnlockConditiononArtifact(Class<?> artifactType)Create a condition that unlocks when an artifact of the specified type is produced. final static UnlockConditionwhenPredicate(Function1<PlaybookContext, Boolean> predicate)Create a condition that unlocks when a custom predicate returns true. -
-
Method Detail
-
afterTools
final static UnlockCondition afterTools(String toolNames)
Create a condition that unlocks after the specified tools have been called.
-
afterTools
final static UnlockCondition afterTools(List<Tool> tools)
Create a condition that unlocks after the specified tools have been called.
-
onArtifact
final static UnlockCondition onArtifact(Class<?> artifactType)
Create a condition that unlocks when an artifact of the specified type is produced.
-
whenPredicate
final static UnlockCondition whenPredicate(Function1<PlaybookContext, Boolean> predicate)
Create a condition that unlocks when a custom predicate returns true.
-
-
-
-