Class OnPropertyCondition<T>
- java.lang.Object
-
- io.streamthoughts.azkarra.api.components.condition.OnPropertyCondition<T>
-
- All Implemented Interfaces:
Condition
,Predicate<ConditionContext>
public class OnPropertyCondition<T> extends Object implements Condition
Condition to express a requirement for a given property.
-
-
Constructor Summary
Constructors Constructor Description OnPropertyCondition(Function<Conf,Optional<T>> accessor, Predicate<Optional<T>> predicate)
Creates a newOnPropertyCondition
instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(ConditionContext context)
Verifies if the condition matches.
-
-
-
Method Detail
-
matches
public boolean matches(ConditionContext context)
Verifies if the condition matches.- Specified by:
matches
in interfaceCondition
- Parameters:
context
- theConditionContext
.- Returns:
true
if the component matches this condition,false
otherwise.
-
-