Package org.wildfly.clustering.function
Interface DoublePredicate
- All Superinterfaces:
DoublePredicate
An enhanced double predicate.
- Author:
- Paul Ferraro
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final DoublePredicatestatic final DoublePredicatestatic final DoublePredicatestatic final DoublePredicatestatic final DoublePredicate -
Method Summary
Modifier and TypeMethodDescriptiondefault DoublePredicateand(DoublePredicate other) default <V> Predicate<V> compose(ToDoubleFunction<V> function) Returns a predicate that applies the specified function to its argument before evaluating.default DoublePredicatecomposeDouble(DoubleUnaryOperator function) Returns a predicate that applies the specified function to its argument before evaluating.default IntPredicatecomposeInt(IntToDoubleFunction function) Returns a predicate that applies the specified function to its argument before evaluating.default LongPredicatecomposeLong(LongToDoubleFunction function) Returns a predicate that applies the specified function to its argument before evaluating.static DoublePredicateequalTo(double base) Returns a predicate that evaluates to true if and only if the argument is equals to the specified object.static DoublePredicategreaterThan(double base) Returns a predicate that evaluates to true if and only if the argument is equals to the specified object.static DoublePredicatelessThan(double base) Returns a predicate that evaluates to true if and only if the argument is equals to the specified object.default DoublePredicatenegate()static DoublePredicateof(boolean result) Returns a predicate that always evaluates to the specified result.default DoublePredicateor(DoublePredicate other) default DoublePredicatexor(DoublePredicate other) Methods inherited from interface java.util.function.DoublePredicate
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 operator- 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 interfaceDoublePredicate
-
negate
- Specified by:
negatein interfaceDoublePredicate
-
or
- Specified by:
orin interfaceDoublePredicate
-
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.
-