Package dev.jlet.function
Interface ThrowingPredicate7<T1,T2,T3,T4,T5,T6,T7,E extends Throwable>
- Type Parameters:
T1- type of the first input argumentT2- type of the second input argumentT3- type of the third input argumentT4- type of the fourth input argumentT5- type of the fifth input argumentT6- type of the sixth input argumentT7- type of the seventh input argumentE- type of the throwing exception
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
The
Predicate specialization for 7 arguments that might throw an exception.-
Method Summary
Modifier and TypeMethodDescriptionstatic <T1,T2, T3, T4, T5, T6, T7, E extends Throwable>
ThrowingPredicate7<T1, T2, T3, T4, T5, T6, T7, E> of(ThrowingPredicate7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? extends E> block) Returns given predicate.booleanEvaluates this predicate on the given arguments.static <T1,T2, T3, T4, T5, T6, T7>
ThrowingPredicate7<T1, T2, T3, T4, T5, T6, T7, Error> unchecked(ThrowingPredicate7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ?> block) Returns given predicate as an unchecked function.
-
Method Details
-
test
Evaluates this predicate on the given arguments.- Parameters:
t1- the first input argumentt2- the second input argumentt3- the third input argumentt4- the fourth input argumentt5- the fifth input argumentt6- the sixth input argumentt7- the seventh input argument- Returns:
trueif the input arguments matches the predicate, otherwisefalse- Throws:
E- if predicate threw exception
-
of
static <T1,T2, ThrowingPredicate7<T1,T3, T4, T5, T6, T7, E extends Throwable> T2, ofT3, T4, T5, T6, T7, E> (ThrowingPredicate7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ? extends E> block) Returns given predicate.- Type Parameters:
T1- type of the first input argumentT2- type of the second input argumentT3- type of the third input argumentT4- type of the fourth input argumentT5- type of the fifth input argumentT6- type of the sixth input argumentT7- type of the seventh input argumentE- type of the throwing exception- Parameters:
block- the predicate- Returns:
- predicate
- Throws:
NullPointerException- ifblockarg isnull
-
unchecked
static <T1,T2, ThrowingPredicate7<T1,T3, T4, T5, T6, T7> T2, uncheckedT3, T4, T5, T6, T7, Error> (ThrowingPredicate7<? super T1, ? super T2, ? super T3, ? super T4, ? super T5, ? super T6, ? super T7, ?> block) Returns given predicate as an unchecked function.- Type Parameters:
T1- type of the first input argumentT2- type of the second input argumentT3- type of the third input argumentT4- type of the fourth input argumentT5- type of the fifth input argumentT6- type of the sixth input argumentT7- type of the seventh input argument- Parameters:
block- the origin predicate- Returns:
- unchecked predicate
- Throws:
NullPointerException- ifblockarg isnull
-