Interface ThrowingPredicate4<A,B,C,D,T extends Throwable>
- Type Parameters:
A
- The 1st input argument type for the predicateB
- The 2nd input argument type for the predicateC
- The 3rd input argument type for the predicateD
- The 4th input argument type for the predicateT
- The type ofThrowable
thrown by the predicate
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
A predicate that takes four arguments, returns a boolean,
and may throw a
Throwable
.- Version:
- 0.1-Alpha-SNAPSHOT
- Author:
- Logan Ferree (Tadukoo)
-
Method Summary
Modifier and TypeMethodDescriptionCreates a ThrowingPredicate4 that will test the arguments with this ThrowingPredicate4 and with the given ThrowingPredicate4, returning true only if both results are true.negate()
Creates a ThrowingPredicate4 that will return the opposite result of this ThrowingPredicate4.Creates a ThrowingPredicate4 that will test the arguments with this ThrowingPredicate4 and with the given ThrowingPredicate4, returning true if either result is true.boolean
Takes four arguments and returns a boolean.
-
Method Details
-
test
Takes four arguments and returns a boolean.- Parameters:
a
- The 1st argumentb
- The 2nd argumentc
- The 3rd argumentd
- The 4th argument- Returns:
- A boolean
- Throws:
T
- Determined by the predicate, not required
-
and
default ThrowingPredicate4<A,B, andC, D, T> (ThrowingPredicate4<? super A, ? super B, ? super C, ? super D, ? extends T> other) Creates a ThrowingPredicate4 that will test the arguments with this ThrowingPredicate4 and with the given ThrowingPredicate4, returning true only if both results are true.- Parameters:
other
- The other ThrowingPredicate4 to test the arguments on- Returns:
- The ThrowingPredicate4 that results from composing this one and the given one
-
or
default ThrowingPredicate4<A,B, orC, D, T> (ThrowingPredicate4<? super A, ? super B, ? super C, ? super D, ? extends T> other) Creates a ThrowingPredicate4 that will test the arguments with this ThrowingPredicate4 and with the given ThrowingPredicate4, returning true if either result is true.- Parameters:
other
- The other ThrowingPredicate4 to test the arguments on- Returns:
- The ThrowingPredicate4 that results from composing this one and the given one
-
negate
Creates a ThrowingPredicate4 that will return the opposite result of this ThrowingPredicate4.- Returns:
- A negated version of this ThrowingPredicate4
-