@FunctionalInterface public interface LTriBoolFunction<R> extends MetaFunction, MetaInterface.NonThrowing, Codomain<aType.a<R>>, Domain3<aType.aBool,aType.aBool,aType.aBool>
Non-throwing functional interface (lambda) LTriBoolFunction for Java 8.
Type: function
Domain (lvl: 3): boolean a1,boolean a2,boolean a3
Co-domain: R
| Modifier and Type | Interface and Description |
|---|---|
static class |
LTriBoolFunction.LTriBoolFunctionSingle<R> |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
static LSupplier<String> |
NULL_VALUE_MESSAGE_SUPPLIER |
| Modifier and Type | Method and Description |
|---|---|
default LTriBoolFunction<R> |
after(LConsumer<? super R> after) |
default R |
apply(boolean a1,
boolean a2,
boolean a3) |
default R |
apply(boolean a1,
boolean a2,
boolean a3,
ExWF<RuntimeException> exF) |
default R |
apply(boolean a1,
boolean a2,
boolean a3,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static <R> LTriBoolFunction<R> |
apply1st(LBoolFunction<R> func)
Captures single parameter function into this interface where only 1st parameter will be used.
|
static <R> LTriBoolFunction<R> |
apply2nd(LBoolFunction<R> func)
Captures single parameter function into this interface where only 2nd parameter will be used.
|
static <R> LTriBoolFunction<R> |
apply3rd(LBoolFunction<R> func)
Captures single parameter function into this interface where only 3rd parameter will be used.
|
default R |
applyThen(boolean a1,
boolean a2,
boolean a3,
LFunction<Throwable,R> handler) |
R |
applyX(boolean a1,
boolean a2,
boolean a3)
Implement this, but call apply(boolean a1,boolean a2,boolean a3)
|
default LTriBoolFunction<R> |
before(LTriBoolConsumer before) |
static <R> R |
call(boolean a1,
boolean a2,
boolean a3,
LTriBoolFunction<R> lambda) |
default LSupplier<R> |
capture(boolean a1,
boolean a2,
boolean a3)
Captures arguments but delays the evaluation.
|
default <V2> LTriBoolFunction<V2> |
cast()
Cast that replace generics.
|
static <V2,R> LTriBoolFunction<V2> |
cast(LTriBoolFunction<R> function)
Cast that replace generics.
|
default LTriBoolFunction<R> |
compose(LLogicalOperator before1,
LLogicalOperator before2,
LLogicalOperator before3)
Allows to manipulate the domain of the function.
|
static <R> LTriBoolFunction<R> |
composed(LLogicalOperator before1,
LLogicalOperator before2,
LLogicalOperator before3,
LTriBoolFunction<R> after) |
static <V1,V2,V3,R> |
composed(LPredicate<? super V1> before1,
LPredicate<? super V2> before2,
LPredicate<? super V3> before3,
LTriBoolFunction<R> after) |
static <R> LTriBoolFunction<R> |
constant(R r)
Creates function that always returns the same value.
|
static <R> LTriBoolFunction<R> |
failSafe(LTriBoolFunction<R> func,
LTriBoolFunction<R> failSafe) |
default R |
failSafeApply(boolean a1,
boolean a2,
boolean a3,
LTriBoolFunction<R> failSafe) |
static <R> R |
failSafeApply(boolean a1,
boolean a2,
boolean a3,
LTriBoolFunction<R> func,
LTriBoolFunction<R> failSafe) |
default <C1,C2,C3> void |
forEach(IndexedRead<C1,aType.aBool> ia1,
C1 source1,
IndexedRead<C2,aType.aBool> ia2,
C2 source2,
IndexedRead<C3,aType.aBool> ia3,
C3 source3,
LConsumer<? super R> consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
static <R> void |
fromTill(int min_i,
int max_i,
boolean a1,
boolean a2,
boolean a3,
LTriBoolFunction<R> func)
From-To.
|
static <R> void |
fromTo(int min_i,
int max_i,
boolean a1,
boolean a2,
boolean a3,
LTriBoolFunction<R> func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default LTriBoolFunction<R> |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default R |
handlingApply(boolean a1,
boolean a2,
boolean a3,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static <R> R |
handlingApply(boolean a1,
boolean a2,
boolean a3,
LTriBoolFunction<R> func,
HandlingInstructions<Throwable,RuntimeException> handling) |
default <C1,C2,C3,I3> |
iterate(IndexedRead<C1,aType.aBool> ia1,
C1 source1,
IndexedRead<C2,aType.aBool> ia2,
C2 source2,
SequentialRead<C3,I3,aType.aBool> sa3,
C3 source3,
LConsumer<? super R> consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default <C1,C2,I2,C3> |
iterate(IndexedRead<C1,aType.aBool> ia1,
C1 source1,
SequentialRead<C2,I2,aType.aBool> sa2,
C2 source2,
IndexedRead<C3,aType.aBool> ia3,
C3 source3,
LConsumer<? super R> consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default <C1,C2,I2,C3,I3> |
iterate(IndexedRead<C1,aType.aBool> ia1,
C1 source1,
SequentialRead<C2,I2,aType.aBool> sa2,
C2 source2,
SequentialRead<C3,I3,aType.aBool> sa3,
C3 source3,
LConsumer<? super R> consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default <C1,I1,C2,C3> |
iterate(SequentialRead<C1,I1,aType.aBool> sa1,
C1 source1,
IndexedRead<C2,aType.aBool> ia2,
C2 source2,
IndexedRead<C3,aType.aBool> ia3,
C3 source3,
LConsumer<? super R> consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default <C1,I1,C2,C3,I3> |
iterate(SequentialRead<C1,I1,aType.aBool> sa1,
C1 source1,
IndexedRead<C2,aType.aBool> ia2,
C2 source2,
SequentialRead<C3,I3,aType.aBool> sa3,
C3 source3,
LConsumer<? super R> consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default <C1,I1,C2,I2,C3> |
iterate(SequentialRead<C1,I1,aType.aBool> sa1,
C1 source1,
SequentialRead<C2,I2,aType.aBool> sa2,
C2 source2,
IndexedRead<C3,aType.aBool> ia3,
C3 source3,
LConsumer<? super R> consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default <C1,I1,C2,I2,C3,I3> |
iterate(SequentialRead<C1,I1,aType.aBool> sa1,
C1 source1,
SequentialRead<C2,I2,aType.aBool> sa2,
C2 source2,
SequentialRead<C3,I3,aType.aBool> sa3,
C3 source3,
LConsumer<? super R> consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default LBiBoolFunction<R> |
lShrink(LLogicalBinaryOperator left) |
default LBiBoolFunction<R> |
lShrinkc(boolean a1) |
static <R> LBiBoolFunction<R> |
lShrinked(LLogicalBinaryOperator left,
LTriBoolFunction<R> func) |
static <R> LBiBoolFunction<R> |
lShrinkedc(boolean a1,
LTriBoolFunction<R> func) |
default R |
nestingApply(boolean a1,
boolean a2,
boolean a3)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default LTriBoolFunction<R> |
nonNullable()
Converts to function that makes sure that the result is not null.
|
default R |
nonNullApply(boolean a1,
boolean a2,
boolean a3)
Function call that ensures the result is not null
|
static <R> R |
produce(boolean a1,
boolean a2,
boolean a3)
Does nothing (LTriBoolFunction) Function
|
static <R> LTriBoolFunction<R> |
recursive(LFunction<LTriBoolFunction<R>,LTriBoolFunction<R>> selfLambda) |
default LBiBoolFunction<R> |
rShrink(LLogicalBinaryOperator right) |
default LBiBoolFunction<R> |
rShrinkc(boolean a3) |
static <R> LBiBoolFunction<R> |
rShrinked(LLogicalBinaryOperator right,
LTriBoolFunction<R> func) |
static <R> LBiBoolFunction<R> |
rShrinkedc(boolean a3,
LTriBoolFunction<R> func) |
static <R> LTriBoolFunction<R> |
safe()
Safe instance.
|
static <R> LTriBoolFunction<R> |
safe(LTriBoolFunction<R> other)
Safe wrapping.
|
static <R> LSupplier<LTriBoolFunction<R>> |
safeSupplier()
Safe instance supplier.
|
static <R> LSupplier<LTriBoolFunction<R>> |
safeSupplier(LSupplier<LTriBoolFunction<R>> supplier)
Safe supplier.
|
default R |
shovingApply(boolean a1,
boolean a2,
boolean a3)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
default <V> LTriBoolFunction<V> |
then(LFunction<? super R,? extends V> after)
Combines two functions together in a order.
|
default LTriBoolConsumer |
thenConsume(LConsumer<? super R> after)
Combines two functions together in a order.
|
default LLogicalTernaryOperator |
thenToBool(LPredicate<? super R> after)
Combines two functions together in a order.
|
static <R> void |
times(int max_i,
boolean a1,
boolean a2,
boolean a3,
LTriBoolFunction<R> func)
From-To.
|
static <R> LTriBoolFunction<R> |
triBoolFunc(LTriBoolFunction<R> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <V1,V2,V3> LTriFunction<V1,V2,V3,R> |
triBoolFuncCompose(LPredicate<? super V1> before1,
LPredicate<? super V2> before2,
LPredicate<? super V3> before3)
Allows to manipulate the domain of the function.
|
static <R> LTriBoolFunction<R> |
triBoolFuncThrowing(ExF<Throwable> exF) |
static <R> LTriBoolFunction<R> |
triBoolFuncThrowing(String message,
ExMF<Throwable> exF) |
static <R> R |
tryApply(boolean a1,
boolean a2,
boolean a3,
LTriBoolFunction<R> func) |
static <R> R |
tryApply(boolean a1,
boolean a2,
boolean a3,
LTriBoolFunction<R> func,
ExWF<RuntimeException> exF) |
static <R> R |
tryApply(boolean a1,
boolean a2,
boolean a3,
LTriBoolFunction<R> func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static <R> R |
tryApplyThen(boolean a1,
boolean a2,
boolean a3,
LTriBoolFunction<R> func,
LFunction<Throwable,R> handler) |
default LTriBoolFunction<R> |
trying(ExWF<RuntimeException> exF) |
default LTriBoolFunction<R> |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LTriBoolFunction<R> |
tryingThen(LFunction<Throwable,R> handler) |
default R |
tupleApply(LBoolTriple args) |
static <R> LTriBoolFunction<R> |
uncurry(LBoolFunction<LBoolFunction<LBoolFunction<R>>> func) |
default LTriBoolFunction |
untyped()
Cast that removes generics.
|
isFunctionformatTo, isAction, isConsumer, isOperator, isPredicate, isSupplierisThrowingstatic final String DESCRIPTION
R applyX(boolean a1, boolean a2, boolean a3) throws Throwable
Implement this, but call apply(boolean a1,boolean a2,boolean a3)
Throwabledefault R tupleApply(LBoolTriple args)
default R handlingApply(boolean a1, boolean a2, boolean a3, HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LTriBoolFunction<R> handling(HandlingInstructions<Throwable,RuntimeException> handling)
default R apply(boolean a1, boolean a2, boolean a3, @Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default LTriBoolFunction<R> trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default R apply(boolean a1, boolean a2, boolean a3, @Nonnull ExWF<RuntimeException> exF)
default LTriBoolFunction<R> trying(@Nonnull ExWF<RuntimeException> exF)
default R applyThen(boolean a1, boolean a2, boolean a3, @Nonnull LFunction<Throwable,R> handler)
default R nestingApply(boolean a1, boolean a2, boolean a3)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default R shovingApply(boolean a1, boolean a2, boolean a3)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static <R> R handlingApply(boolean a1,
boolean a2,
boolean a3,
LTriBoolFunction<R> func,
HandlingInstructions<Throwable,RuntimeException> handling)
static <R> R tryApply(boolean a1,
boolean a2,
boolean a3,
LTriBoolFunction<R> func)
static <R> R tryApply(boolean a1,
boolean a2,
boolean a3,
LTriBoolFunction<R> func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static <R> R tryApply(boolean a1,
boolean a2,
boolean a3,
LTriBoolFunction<R> func,
@Nonnull
ExWF<RuntimeException> exF)
static <R> R tryApplyThen(boolean a1,
boolean a2,
boolean a3,
LTriBoolFunction<R> func,
@Nonnull
LFunction<Throwable,R> handler)
default R failSafeApply(boolean a1, boolean a2, boolean a3, @Nonnull LTriBoolFunction<R> failSafe)
static <R> R failSafeApply(boolean a1,
boolean a2,
boolean a3,
LTriBoolFunction<R> func,
@Nonnull
LTriBoolFunction<R> failSafe)
static <R> LTriBoolFunction<R> failSafe(LTriBoolFunction<R> func, @Nonnull LTriBoolFunction<R> failSafe)
@Nonnull default R nonNullApply(boolean a1, boolean a2, boolean a3)
Function call that ensures the result is not null
@Nonnull default String functionalInterfaceDescription()
Returns description of the functional interface.
functionalInterfaceDescription in interface MetaFunctionalInterfacestatic <R> void fromTo(int min_i,
int max_i,
boolean a1,
boolean a2,
boolean a3,
LTriBoolFunction<R> func)
From-To. Intended to be used with non-capturing lambda.
static <R> void fromTill(int min_i,
int max_i,
boolean a1,
boolean a2,
boolean a3,
LTriBoolFunction<R> func)
From-To. Intended to be used with non-capturing lambda.
static <R> void times(int max_i,
boolean a1,
boolean a2,
boolean a3,
LTriBoolFunction<R> func)
From-To. Intended to be used with non-capturing lambda.
default LBiBoolFunction<R> lShrink(LLogicalBinaryOperator left)
default LBiBoolFunction<R> lShrinkc(boolean a1)
static <R> LBiBoolFunction<R> lShrinked(LLogicalBinaryOperator left, LTriBoolFunction<R> func)
static <R> LBiBoolFunction<R> lShrinkedc(boolean a1, LTriBoolFunction<R> func)
default LBiBoolFunction<R> rShrink(LLogicalBinaryOperator right)
default LBiBoolFunction<R> rShrinkc(boolean a3)
static <R> LBiBoolFunction<R> rShrinked(LLogicalBinaryOperator right, LTriBoolFunction<R> func)
static <R> LBiBoolFunction<R> rShrinkedc(boolean a3, LTriBoolFunction<R> func)
static <R> LTriBoolFunction<R> uncurry(LBoolFunction<LBoolFunction<LBoolFunction<R>>> func)
default LTriBoolFunction untyped()
Cast that removes generics.
default <V2> LTriBoolFunction<V2> cast()
Cast that replace generics.
static <V2,R> LTriBoolFunction<V2> cast(LTriBoolFunction<R> function)
Cast that replace generics.
default LSupplier<R> capture(boolean a1, boolean a2, boolean a3)
Captures arguments but delays the evaluation.
static <R> LTriBoolFunction<R> constant(R r)
Creates function that always returns the same value.
@Nonnull static <R> LTriBoolFunction<R> apply1st(@Nonnull LBoolFunction<R> func)
Captures single parameter function into this interface where only 1st parameter will be used.
@Nonnull static <R> LTriBoolFunction<R> apply2nd(@Nonnull LBoolFunction<R> func)
Captures single parameter function into this interface where only 2nd parameter will be used.
@Nonnull static <R> LTriBoolFunction<R> apply3rd(@Nonnull LBoolFunction<R> func)
Captures single parameter function into this interface where only 3rd parameter will be used.
@Nonnull static <R> LTriBoolFunction<R> triBoolFunc(@Nonnull LTriBoolFunction<R> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static <R> LTriBoolFunction<R> recursive(@Nonnull LFunction<LTriBoolFunction<R>,LTriBoolFunction<R>> selfLambda)
@Nonnull static <R> LTriBoolFunction<R> triBoolFuncThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static <R> LTriBoolFunction<R> triBoolFuncThrowing(String message, @Nonnull ExMF<Throwable> exF)
static <R> R call(boolean a1,
boolean a2,
boolean a3,
@Nonnull
LTriBoolFunction<R> lambda)
@Nonnull static <R> LTriBoolFunction<R> safe()
Safe instance. That always returns the same value (as produce).
@Nonnull static <R> LSupplier<LTriBoolFunction<R>> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static <R> LTriBoolFunction<R> safe(@Nullable LTriBoolFunction<R> other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static <R> LSupplier<LTriBoolFunction<R>> safeSupplier(@Nullable LSupplier<LTriBoolFunction<R>> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default LTriBoolFunction<R> compose(@Nonnull LLogicalOperator before1, @Nonnull LLogicalOperator before2, @Nonnull LLogicalOperator before3)
Allows to manipulate the domain of the function.
static <R> LTriBoolFunction<R> composed(@Nonnull LLogicalOperator before1, @Nonnull LLogicalOperator before2, @Nonnull LLogicalOperator before3, LTriBoolFunction<R> after)
@Nonnull default <V1,V2,V3> LTriFunction<V1,V2,V3,R> triBoolFuncCompose(@Nonnull LPredicate<? super V1> before1, @Nonnull LPredicate<? super V2> before2, @Nonnull LPredicate<? super V3> before3)
Allows to manipulate the domain of the function.
static <V1,V2,V3,R> LTriFunction<V1,V2,V3,R> composed(@Nonnull LPredicate<? super V1> before1, @Nonnull LPredicate<? super V2> before2, @Nonnull LPredicate<? super V3> before3, LTriBoolFunction<R> after)
@Nonnull default <V> LTriBoolFunction<V> then(@Nonnull LFunction<? super R,? extends V> after)
Combines two functions together in a order.
@Nonnull default LTriBoolConsumer thenConsume(@Nonnull LConsumer<? super R> after)
Combines two functions together in a order.
@Nonnull default LTriBoolFunction<R> before(@Nonnull LTriBoolConsumer before)
@Nonnull default LLogicalTernaryOperator thenToBool(@Nonnull LPredicate<? super R> after)
Combines two functions together in a order.
@Nonnull default LTriBoolFunction<R> nonNullable()
Converts to function that makes sure that the result is not null.
static <R> R produce(boolean a1,
boolean a2,
boolean a3)
Does nothing (LTriBoolFunction) Function
default <C1,C2,C3> void forEach(IndexedRead<C1,aType.aBool> ia1, C1 source1, IndexedRead<C2,aType.aBool> ia2, C2 source2, IndexedRead<C3,aType.aBool> ia3, C3 source3, LConsumer<? super R> consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
default <C1,I1,C2,C3> void iterate(SequentialRead<C1,I1,aType.aBool> sa1, C1 source1, IndexedRead<C2,aType.aBool> ia2, C2 source2, IndexedRead<C3,aType.aBool> ia3, C3 source3, LConsumer<? super R> consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
default <C1,C2,I2,C3> void iterate(IndexedRead<C1,aType.aBool> ia1, C1 source1, SequentialRead<C2,I2,aType.aBool> sa2, C2 source2, IndexedRead<C3,aType.aBool> ia3, C3 source3, LConsumer<? super R> consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
default <C1,I1,C2,I2,C3> void iterate(SequentialRead<C1,I1,aType.aBool> sa1, C1 source1, SequentialRead<C2,I2,aType.aBool> sa2, C2 source2, IndexedRead<C3,aType.aBool> ia3, C3 source3, LConsumer<? super R> consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
default <C1,C2,C3,I3> void iterate(IndexedRead<C1,aType.aBool> ia1, C1 source1, IndexedRead<C2,aType.aBool> ia2, C2 source2, SequentialRead<C3,I3,aType.aBool> sa3, C3 source3, LConsumer<? super R> consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
default <C1,I1,C2,C3,I3> void iterate(SequentialRead<C1,I1,aType.aBool> sa1, C1 source1, IndexedRead<C2,aType.aBool> ia2, C2 source2, SequentialRead<C3,I3,aType.aBool> sa3, C3 source3, LConsumer<? super R> consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
default <C1,C2,I2,C3,I3> void iterate(IndexedRead<C1,aType.aBool> ia1, C1 source1, SequentialRead<C2,I2,aType.aBool> sa2, C2 source2, SequentialRead<C3,I3,aType.aBool> sa3, C3 source3, LConsumer<? super R> consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
default <C1,I1,C2,I2,C3,I3> void iterate(SequentialRead<C1,I1,aType.aBool> sa1, C1 source1, SequentialRead<C2,I2,aType.aBool> sa2, C2 source2, SequentialRead<C3,I3,aType.aBool> sa3, C3 source3, LConsumer<? super R> consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer. Thread safety, fail-fast, fail-safety of this method depends highly on the arguments.
Copyright © 2019. All rights reserved.