org.multiverse.api.predicates
Class IntPredicate
java.lang.Object
org.multiverse.api.predicates.IntPredicate
- All Implemented Interfaces:
- Predicate<Integer>
public abstract class IntPredicate
- extends Object
- implements Predicate<Integer>
A predicate that checks if some value leads to true or false.
- Author:
- Peter Veentjer.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntPredicate
public IntPredicate()
newEqualsPredicate
public static IntPredicate newEqualsPredicate(int value)
newNotEqualsPredicate
public static IntPredicate newNotEqualsPredicate(int value)
newLargerThanPredicate
public static IntPredicate newLargerThanPredicate(int value)
newLargerThanOrEqualsPredicate
public static IntPredicate newLargerThanOrEqualsPredicate(int value)
newSmallerThanPredicate
public static IntPredicate newSmallerThanPredicate(int value)
newSmallerThanOrEqualsPredicate
public static IntPredicate newSmallerThanOrEqualsPredicate(int value)
evaluate
public abstract boolean evaluate(int current)
- Evaluates the predicate
- Parameters:
current - the current value.
- Returns:
- true or false.
evaluate
public final boolean evaluate(Integer arg)
- Description copied from interface:
Predicate
- Evaluates the predicate.
- Specified by:
evaluate in interface Predicate<Integer>
- Parameters:
arg - the value to evaluate.
- Returns:
- true or false.
Copyright © 2012. All Rights Reserved.