Interface Condition
-
- All Superinterfaces:
Predicate<ConditionContext>
- All Known Implementing Classes:
OnComponentCondition
,OnPropertyCondition
,TrueCondition
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface Condition extends Predicate<ConditionContext>
Define a single condition that need to be fulfilled for a component to be eligible for use in the application.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description boolean
matches(ConditionContext context)
Verifies if the condition matches.default boolean
test(ConditionContext context)
-
-
-
Field Detail
-
True
static final Condition True
-
-
Method Detail
-
matches
boolean matches(ConditionContext context)
Verifies if the condition matches.- Parameters:
context
- theConditionContext
.- Returns:
true
if the component matches this condition,false
otherwise.
-
test
default boolean test(ConditionContext context)
- Specified by:
test
in interfacePredicate<ConditionContext>
-
-