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 booleanmatches(ConditionContext context)Verifies if the condition matches.default booleantest(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:
trueif the component matches this condition,falseotherwise.
-
test
default boolean test(ConditionContext context)
- Specified by:
testin interfacePredicate<ConditionContext>
-
-