Package org.multiverse.api.predicates
Class IntPredicate
java.lang.Object
org.multiverse.api.predicates.IntPredicate
A predicate that checks if some value leads to true or false.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
evaluate
(int current) Evaluates the predicatefinal boolean
Evaluates the predicate.static IntPredicate
newEqualsPredicate
(int value) static IntPredicate
newLargerThanOrEqualsPredicate
(int value) static IntPredicate
newLargerThanPredicate
(int value) static IntPredicate
newNotEqualsPredicate
(int value) static IntPredicate
newSmallerThanOrEqualsPredicate
(int value) static IntPredicate
newSmallerThanPredicate
(int value)
-
Constructor Details
-
IntPredicate
public IntPredicate()
-
-
Method Details
-
newEqualsPredicate
-
newNotEqualsPredicate
-
newLargerThanPredicate
-
newLargerThanOrEqualsPredicate
-
newSmallerThanPredicate
-
newSmallerThanOrEqualsPredicate
-
evaluate
public abstract boolean evaluate(int current) Evaluates the predicate- Parameters:
current
- the current value.- Returns:
- true or false.
-
evaluate
Description copied from interface:Predicate
Evaluates the predicate.
-