T
- the type of the input to the predicate@FunctionalInterface public interface PredicateEx<T> extends Predicate<T>, Serializable
Serializable
variant of java.util.function.Predicate
which declares checked exception.Modifier and Type | Method and Description |
---|---|
static <T> PredicateEx<T> |
alwaysFalse()
Returns a predicate that always evaluates to
false . |
static <T> PredicateEx<T> |
alwaysTrue()
Returns a predicate that always evaluates to
true . |
default PredicateEx<T> |
and(PredicateEx<? super T> other)
Serializable variant of
java.util.function.Predicate#and(Predicate) . |
static <T> PredicateEx<T> |
isEqual(Object other)
Serializable variant of |
default PredicateEx<T> |
negate()
Serializable variant of
Predicate.negate() . |
default PredicateEx<T> |
or(PredicateEx<? super T> other)
Serializable variant of
java.util.function.Predicate#or(Predicate) . |
default boolean |
test(T t) |
boolean |
testEx(T t)
Exception-declaring version of
Predicate.test(T) . |
boolean testEx(T t) throws Exception
Predicate.test(T)
.Exception
- in case of any exceptional case@Nonnull static <T> PredicateEx<T> alwaysTrue()
true
.T
- the type of the input to the predicate@Nonnull static <T> PredicateEx<T> alwaysFalse()
false
.T
- the type of the input to the predicate@Nonnull static <T> PredicateEx<T> isEqual(Object other)
Serializable
variant ofisEqual
in interface Predicate<T>
T
- the type of the input to the predicate
java.util.function.Predicate#isEqual(Object)
.@Nonnull default PredicateEx<T> and(PredicateEx<? super T> other)
Serializable
variant of
java.util.function.Predicate#and(Predicate)
.@Nonnull default PredicateEx<T> negate()
Serializable
variant of
Predicate.negate()
.@Nonnull default PredicateEx<T> or(PredicateEx<? super T> other)
Serializable
variant of
java.util.function.Predicate#or(Predicate)
.Copyright © 2024 Hazelcast, Inc.. All rights reserved.