T
- Predicate type 1.U
- Predicate type 2.E
- The kind of thrown exception or error.@FunctionalInterface
public interface FailableBiPredicate<T,U,E extends java.lang.Throwable>
BiPredicate
that declares a Throwable
.Modifier and Type | Field and Description |
---|---|
static FailableBiPredicate |
FALSE
FALSE singleton
|
static FailableBiPredicate |
TRUE
TRUE singleton
|
Modifier and Type | Method and Description |
---|---|
default FailableBiPredicate<T,U,E> |
and(FailableBiPredicate<? super T,? super U,E> other)
Returns a composed
FailableBiPredicate like BiPredicate.and(BiPredicate) . |
static <T,U,E extends java.lang.Throwable> |
falsePredicate()
Returns The FALSE singleton.
|
default FailableBiPredicate<T,U,E> |
negate()
Returns a predicate that negates this predicate.
|
default FailableBiPredicate<T,U,E> |
or(FailableBiPredicate<? super T,? super U,E> other)
Returns a composed
FailableBiPredicate like BiPredicate.and(BiPredicate) . |
boolean |
test(T object1,
U object2)
Tests the predicate.
|
static <T,U,E extends java.lang.Throwable> |
truePredicate()
Returns The TRUE singleton.
|
static final FailableBiPredicate FALSE
static final FailableBiPredicate TRUE
static <T,U,E extends java.lang.Throwable> FailableBiPredicate<T,U,E> falsePredicate()
T
- Consumed type 1.U
- Consumed type 2.E
- The kind of thrown exception or error.static <T,U,E extends java.lang.Throwable> FailableBiPredicate<T,U,E> truePredicate()
T
- Consumed type 1.U
- Consumed type 2.E
- The kind of thrown exception or error.default FailableBiPredicate<T,U,E> and(FailableBiPredicate<? super T,? super U,E> other)
FailableBiPredicate
like BiPredicate.and(BiPredicate)
.other
- a predicate that will be logically-ANDed with this predicate.FailableBiPredicate
like BiPredicate.and(BiPredicate)
.java.lang.NullPointerException
- if other is nulldefault FailableBiPredicate<T,U,E> negate()
default FailableBiPredicate<T,U,E> or(FailableBiPredicate<? super T,? super U,E> other)
FailableBiPredicate
like BiPredicate.and(BiPredicate)
.other
- a predicate that will be logically-ORed with this predicate.FailableBiPredicate
like BiPredicate.and(BiPredicate)
.java.lang.NullPointerException
- if other is nullboolean test(T object1, U object2) throws E extends java.lang.Throwable
object1
- the first object to test the predicate onobject2
- the second object to test the predicate onE
- Thrown when this predicate fails.E extends java.lang.Throwable
Copyright © 2010 - 2023 Adobe. All Rights Reserved