Package org.wildfly.clustering.function
Interface IntPredicate
- All Superinterfaces:
IntPredicate
An enhanced integer predicate.
- Author:
- Paul Ferraro
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IntPredicatestatic final IntPredicatestatic final IntPredicatestatic final IntPredicatestatic final IntPredicate -
Method Summary
Modifier and TypeMethodDescriptiondefault IntPredicateand(IntPredicate other) default <V> Predicate<V> compose(ToIntFunction<V> mapper) Returns a predicate that applies the specified mapping to its argument before evaluating.default DoublePredicatecomposeDouble(DoubleToIntFunction function) Returns a predicate that applies the specified function to its argument before evaluating.default IntPredicatecomposeInt(IntUnaryOperator function) Returns a predicate that applies the specified function to its argument before evaluating.default LongPredicatecomposeLong(LongToIntFunction function) Returns a predicate that applies the specified function to its argument before evaluating.static IntPredicateequalTo(int base) Returns a predicate that evaluates to true if and only if the argument is equals to the specified object.static IntPredicategreaterThan(int base) Returns a predicate that evaluates to true if and only if the argument is equals to the specified object.static IntPredicatelessThan(int base) Returns a predicate that evaluates to true if and only if the argument is equals to the specified object.default IntPredicatenegate()static IntPredicateof(boolean result) Returns a predicate that always evaluates to the specified result.default IntPredicateor(IntPredicate other) default IntPredicatexor(IntPredicate other) Methods inherited from interface java.util.function.IntPredicate
test
-
Field Details
-
ALWAYS
-
NEVER
-
POSITIVE
-
ZERO
-
NEGATIVE
-
-
Method Details
-
compose
Returns a predicate that applies the specified mapping to its argument before evaluating.- Type Parameters:
V- the mapped type- Parameters:
mapper-- Returns:
- a mapped predicate
-
composeDouble
Returns a predicate that applies the specified function to its argument before evaluating.- Parameters:
function- a mapping function- Returns:
- a mapped predicate
-
composeInt
Returns a predicate that applies the specified function to its argument before evaluating.- Parameters:
function- a mapping operator- Returns:
- a mapped predicate
-
composeLong
Returns a predicate that applies the specified function to its argument before evaluating.- Parameters:
function- a mapping function- Returns:
- a mapped predicate
-
and
- Specified by:
andin interfaceIntPredicate
-
negate
- Specified by:
negatein interfaceIntPredicate
-
or
- Specified by:
orin interfaceIntPredicate
-
xor
-
of
Returns a predicate that always evaluates to the specified result.- Parameters:
result- the fixed result- Returns:
- a predicate that always evaluates to the specified value.
-
lessThan
Returns a predicate that evaluates to true if and only if the argument is equals to the specified object.- Parameters:
base- the comparison value- Returns:
- a predicate that evaluates to true if and only if the argument is equals to the specified object.
-
equalTo
Returns a predicate that evaluates to true if and only if the argument is equals to the specified object.- Parameters:
base- the comparison value- Returns:
- a predicate that evaluates to true if and only if the argument is equals to the specified object.
-
greaterThan
Returns a predicate that evaluates to true if and only if the argument is equals to the specified object.- Parameters:
base- the comparison value- Returns:
- a predicate that evaluates to true if and only if the argument is equals to the specified object.
-