Package org.wildfly.clustering.function
Interface LongPredicate
- All Superinterfaces:
LongPredicate
An enhanced long predicate.
- Author:
- Paul Ferraro
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final LongPredicatestatic final LongPredicatestatic final LongPredicatestatic final LongPredicatestatic final LongPredicate -
Method Summary
Modifier and TypeMethodDescriptiondefault LongPredicateand(LongPredicate other) default <V> Predicate<V> compose(ToLongFunction<V> function) Returns a predicate that applies the specified function to its argument before evaluating.default DoublePredicatecomposeDouble(DoubleToLongFunction function) Returns a predicate that applies the specified function to its argument before evaluating.default IntPredicatecomposeInt(IntToLongFunction function) Returns a predicate that applies the specified function to its argument before evaluating.default LongPredicatecomposeLong(LongUnaryOperator function) Returns a predicate that applies the specified function to its argument before evaluating.static LongPredicateequalTo(long base) Returns a predicate that evaluates to true if and only if the argument is equals to the specified object.static LongPredicategreaterThan(long base) Returns a predicate that evaluates to true if and only if the argument is equals to the specified object.static LongPredicatelessThan(long base) Returns a predicate that evaluates to true if and only if the argument is equals to the specified object.default LongPredicatenegate()static LongPredicateof(boolean result) Returns a predicate that always evaluates to the specified result.default LongPredicateor(LongPredicate other) default LongPredicatexor(LongPredicate other) Methods inherited from interface java.util.function.LongPredicate
test
-
Field Details
-
ALWAYS
-
NEVER
-
POSITIVE
-
ZERO
-
NEGATIVE
-
-
Method Details
-
compose
Returns a predicate that applies the specified function to its argument before evaluating.- Type Parameters:
V- the mapped type- Parameters:
function- a mapping function- 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 function- 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 interfaceLongPredicate
-
negate
- Specified by:
negatein interfaceLongPredicate
-
or
- Specified by:
orin interfaceLongPredicate
-
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.
-