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