public interface SpeedmentPredicate<ENTITY> extends ToBoolean<ENTITY>
Modifier and Type | Method and Description |
---|---|
default SpeedmentPredicate<ENTITY> |
and(Predicate<? super ENTITY> other) |
default <T> ComposedPredicate<T,ENTITY> |
compose(Function<? super T,? extends ENTITY> before)
Returns a composed expression that first applies the
before
function to its input, and then applies this function to the result. |
default SpeedmentPredicate<ENTITY> |
negate() |
default SpeedmentPredicate<ENTITY> |
or(Predicate<? super ENTITY> other) |
applyAsBoolean, asDouble, asInt, asLong, compare, composeNullable, expressionType, hash, map, mapToDouble, of
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
default <T> ComposedPredicate<T,ENTITY> compose(Function<? super T,? extends ENTITY> before)
ToBoolean
before
function to its input, and then applies this function to the result.
If evaluation of either function throws an exception, it is relayed to
the caller of the composed function.
ToBoolean
is a bit special when it comes to the
compose()
-method. If the before
method returns
null
, the composed expression will return false
. This is
to remain compatible with how Speedment handles predicates in streams.
To get a ToBooleanNullable
that acts as you might expect, instead
use ToBoolean.compose(java.util.function.Function<? super V, ? extends T>)
default SpeedmentPredicate<ENTITY> negate()
default SpeedmentPredicate<ENTITY> and(Predicate<? super ENTITY> other)
Copyright © 2019 Speedment, Inc.. All rights reserved.