Package com.hazelcast.function
Interface PredicateEx<T>
- Type Parameters:
T
- the type of the input to the predicate
- All Superinterfaces:
Predicate<T>
,Serializable
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Serializable
variant of java.util.function.Predicate
which declares checked exception.- Since:
- 4.0
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> PredicateEx<T>
Returns a predicate that always evaluates tofalse
.static <T> PredicateEx<T>
Returns a predicate that always evaluates totrue
.default PredicateEx<T>
and
(PredicateEx<? super T> other) Serializable
variant ofjava.util.function.Predicate#and(Predicate)
.static <T> PredicateEx<T>
Serializable
variant ofdefault PredicateEx<T>
negate()
Serializable
variant ofPredicate.negate()
.default PredicateEx<T>
or
(PredicateEx<? super T> other) Serializable
variant ofjava.util.function.Predicate#or(Predicate)
.default boolean
boolean
Exception-declaring version ofPredicate.test(T)
.
-
Method Details
-
testEx
Exception-declaring version ofPredicate.test(T)
.- Throws:
Exception
- in case of any exceptional case
-
test
-
alwaysTrue
Returns a predicate that always evaluates totrue
.- Type Parameters:
T
- the type of the input to the predicate
-
alwaysFalse
Returns a predicate that always evaluates tofalse
.- Type Parameters:
T
- the type of the input to the predicate
-
isEqual
Serializable
variant of- Type Parameters:
T
- the type of the input to the predicatejava.util.function.Predicate#isEqual(Object)
.
-
and
Serializable
variant ofjava.util.function.Predicate#and(Predicate)
. -
negate
Serializable
variant ofPredicate.negate()
. -
or
Serializable
variant ofjava.util.function.Predicate#or(Predicate)
.
-