This is a functional interface and can be used as the assignment target for a lambda expression or method reference.
| Modifier and Type | Method and Description |
|---|---|
| public default Predicate | |
| public static < The type of the predicate input. T> Predicate | Returns: Ajava.util.function.Predicate which wraps the specified
Predicate.The wrapped)Predicate to wrap. Must not be null.Returns a |
| public static < The type of the predicate input. T> Predicate | Returns: Ajava.util.function.Predicate which wraps the specified
Predicate and the specified value.The wrapped, boolean Predicate to wrap. Must not be null.The value to return if the specified orElse)Predicate
throws an Exception.Returns a |
| public static < The type of the predicate input. T> Predicate | Returns: Ajava.util.function.Predicate which wraps the specified
Predicate and the specified
java.util.function.BooleanSupplier.The wrapped, BooleanSupplier Predicate to wrap. Must not be null.The orElseGet)java.util.function.BooleanSupplier to call
for a return value if the specified Predicate throws
an Exception.Returns a |
| public static < The type of the predicate input. T> Predicate | Returns: APredicate which wraps the specified
java.util.function.Predicate.The wrapped)java.util.function.Predicate to wrap. Must not
be null.Returns a |
| public default Predicate | Returns: APredicate which is the negation of this
Predicate.Return a |
| public default Predicate | |
| public boolean | Returns: true if the specified argument is accepted by this
predicate; false otherwise.The input to this predicate. t)Evaluates this predicate on the specified argument. |
| and | back to summary |
|---|---|
| public default Predicate Compose this
Short-circuiting is used, so the specified | |
| asJavaPredicate | back to summary |
|---|---|
| public static <T> Predicate Returns a
The returned | |
| asJavaPredicateOrElse | back to summary |
|---|---|
| public static <T> Predicate Returns a
If the the specified
| |
| asJavaPredicateOrElseGet | back to summary |
|---|---|
| public static <T> Predicate Returns a
If the the specified
| |
| asPredicate | back to summary |
|---|---|
| public static <T> Predicate Returns a | |
| negate | back to summary |
|---|---|
| public default Predicate Return a
| |
| or | back to summary |
|---|---|
| public default Predicate Compose this
Short-circuiting is used, so the specified | |
| test | back to summary |
|---|---|
| public boolean test(T t) throws Exception Evaluates this predicate on the specified argument.
| |