P1
- first parameter typeP2
- second parameter typeP3
- third parameter type@FunctionalInterface public interface FragileProcedure3<E extends java.lang.Exception,P1,P2,P3> extends FragileProcedure1<E,ITuple3<? extends P1,? extends P2,? extends P3>>
Procedure0
,
Procedure1
,
Procedure2
,
Procedure4
,
Procedure5
,
Procedure6
,
Procedure7
,
Procedure8
,
Procedure9
Modifier and Type | Field and Description |
---|---|
static FragileProcedure3<?,?,?,?> |
NULL
Procedure with three arguments which does nothing.
|
Modifier and Type | Method and Description |
---|---|
default <FR extends ITuple3<? extends P1,? extends P2,? extends P3>,FP> |
after1(java.util.function.Function<FP,FR> before)
Get a chained procedure which first applies the given function, then this procedure.
|
default void |
apply(ITuple3<? extends P1,? extends P2,? extends P3> tuple3)
Run the function.
|
void |
apply(P1 arg1,
P2 arg2,
P3 arg3)
Run the procedure.
|
static <X extends java.lang.Exception,T1,T2,T3> |
empty()
Return a procedure which does nothing.
|
default Procedure3<P1,P2,P3> |
nonFragile()
Convert this to a non-fragile procedure which does not throw a checked exception.
|
default Procedure3<P1,P2,P3> |
nonFragileX(Procedure4<? super E,? super P1,? super P2,? super P3> exceptionHandler)
Convert this to a non-fragile procedure which does not a checked exception.
|
default FragileProcedure2<E,P2,P3> |
partial1(P1 argument)
Get a partially applied procedure.
|
default FragileProcedure2<E,P1,P3> |
partial2(P2 argument)
Get a partially applied procedure.
|
default FragileProcedure2<E,P1,P2> |
partial3(P3 argument)
Get a partially applied procedure.
|
applyNonNull, nonFragileX, partial
@NotNull static final FragileProcedure3<?,?,?,?> NULL
empty()
instead.void apply(P1 arg1, P2 arg2, P3 arg3) throws E extends java.lang.Exception
arg1
- first procedure argumentarg2
- second procedure argumentarg3
- third procedure argumentE
- exceptionE extends java.lang.Exception
default void apply(@NotNull ITuple3<? extends P1,? extends P2,? extends P3> tuple3) throws E extends java.lang.Exception
FragileProcedure1
@NotNull default Procedure3<P1,P2,P3> nonFragile()
RuntimeException
for any
checked exception thrown during apply(Object, Object, Object)
.nonFragile
in interface FragileProcedure1<E extends java.lang.Exception,ITuple3<? extends P1,? extends P2,? extends P3>>
Procedure3.nonFragile(FragileProcedure3)
@NotNull default Procedure3<P1,P2,P3> nonFragileX(@NotNull Procedure4<? super E,? super P1,? super P2,? super P3> exceptionHandler)
RuntimeException
for any
checked exception thrown during apply(Object, Object, Object)
.exceptionHandler
- handler called when an exception is encountered.
It may either ignore it, throw an unchecked exception,
or collect the exceptionsProcedure3.nonFragileX(FragileProcedure3, Procedure4)
@NotNull default <FR extends ITuple3<? extends P1,? extends P2,? extends P3>,FP> FragileProcedure1<E,FP> after1(@NotNull java.util.function.Function<FP,FR> before)
ITuple3
with matching parametric types
which are applied in their order to this procedure.FR
- function before
's return type, has to be a 3-tuple with matching typesFP
- function before
's parameter type, same for returned procedurebefore
- function to apply first, has to return a non-null
result so unpacking the parameters
from the tuple is possible@NotNull default FragileProcedure2<E,P2,P3> partial1(P1 argument)
argument
- value applied for first argument@NotNull default FragileProcedure2<E,P1,P3> partial2(P2 argument)
argument
- value applied for second argument@NotNull default FragileProcedure2<E,P1,P2> partial3(P3 argument)
argument
- value applied for third argument@NotNull static <X extends java.lang.Exception,T1,T2,T3> FragileProcedure3<X,T1,T2,T3> empty()
NULL
, but the compiler will accept it smoothly.