@FunctionalInterface public interface LBiCharFunction<R> extends MetaFunction, MetaInterface.NonThrowing, Codomain<aType.a<R>>, Domain2<aType.aChar,aType.aChar>
Non-throwing functional interface (lambda) LBiCharFunction for Java 8.
Type: function
Domain (lvl: 2): char a1,char a2
Co-domain: R
| Modifier and Type | Interface and Description |
|---|---|
static class |
LBiCharFunction.LBiCharFunctionSingle<R> |
static interface |
LBiCharFunction.LChar1Char0Func<R>
Permutation of LBiCharFunction for method references.
|
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 LBiCharFunction<R> |
after(LConsumer<? super R> after) |
default R |
apply(char a1,
char a2) |
default R |
apply(char a1,
char a2,
ExWF<RuntimeException> exF) |
default R |
apply(char a1,
char a2,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static <R> LBiCharFunction<R> |
apply1st(LCharFunction<R> func)
Captures single parameter function into this interface where only 1st parameter will be used.
|
static <R> LBiCharFunction<R> |
apply2nd(LCharFunction<R> func)
Captures single parameter function into this interface where only 2nd parameter will be used.
|
default R |
applyThen(char a1,
char a2,
LFunction<Throwable,R> handler) |
R |
applyX(char a1,
char a2)
Implement this, but call apply(char a1,char a2)
|
default LBiCharFunction<R> |
before(LBiCharConsumer before) |
static <R> LBiCharFunction<R> |
biCharFunc(LBiCharFunction<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> LBiFunction<V1,V2,R> |
biCharFuncCompose(LToCharFunction<? super V1> before1,
LToCharFunction<? super V2> before2)
Allows to manipulate the domain of the function.
|
static <R> LBiCharFunction<R> |
biCharFuncThrowing(ExF<Throwable> exF) |
static <R> LBiCharFunction<R> |
biCharFuncThrowing(String message,
ExMF<Throwable> exF) |
static <R> R |
call(char a1,
char a2,
LBiCharFunction<R> lambda) |
default LSupplier<R> |
capture(char a1,
char a2)
Captures arguments but delays the evaluation.
|
default <V2> LBiCharFunction<V2> |
cast()
Cast that replace generics.
|
static <V2,R> LBiCharFunction<V2> |
cast(LBiCharFunction<R> function)
Cast that replace generics.
|
static <R> LBiCharFunction.LChar1Char0Func<R> |
char1Char0Func(LBiCharFunction.LChar1Char0Func<R> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default LBiCharFunction<R> |
compose(LCharUnaryOperator before1,
LCharUnaryOperator before2)
Allows to manipulate the domain of the function.
|
static <R> LBiCharFunction<R> |
composed(LCharUnaryOperator before1,
LCharUnaryOperator before2,
LBiCharFunction<R> after) |
static <V1,V2,R> LBiFunction<V1,V2,R> |
composed(LToCharFunction<? super V1> before1,
LToCharFunction<? super V2> before2,
LBiCharFunction<R> after) |
static <R> LBiCharFunction<R> |
constant(R r)
Creates function that always returns the same value.
|
static <R> LBiCharFunction<R> |
failSafe(LBiCharFunction<R> func,
LBiCharFunction<R> failSafe) |
default R |
failSafeApply(char a1,
char a2,
LBiCharFunction<R> failSafe) |
static <R> R |
failSafeApply(char a1,
char a2,
LBiCharFunction<R> func,
LBiCharFunction<R> failSafe) |
default <C1,C2> void |
forEach(IndexedRead<C1,aType.aChar> ia1,
C1 source1,
IndexedRead<C2,aType.aChar> ia2,
C2 source2,
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,
char a1,
char a2,
LBiCharFunction<R> func)
From-To.
|
static <R> void |
fromTo(int min_i,
int max_i,
char a1,
char a2,
LBiCharFunction<R> func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default LBiCharFunction<R> |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default R |
handlingApply(char a1,
char a2,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static <R> R |
handlingApply(char a1,
char a2,
LBiCharFunction<R> func,
HandlingInstructions<Throwable,RuntimeException> handling) |
default <C1,C2,I2> void |
iterate(IndexedRead<C1,aType.aChar> ia1,
C1 source1,
SequentialRead<C2,I2,aType.aChar> sa2,
C2 source2,
LConsumer<? super R> consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default <C1,I1,C2> void |
iterate(SequentialRead<C1,I1,aType.aChar> sa1,
C1 source1,
IndexedRead<C2,aType.aChar> ia2,
C2 source2,
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> |
iterate(SequentialRead<C1,I1,aType.aChar> sa1,
C1 source1,
SequentialRead<C2,I2,aType.aChar> sa2,
C2 source2,
LConsumer<? super R> consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default LCharFunction<R> |
lShrink(LCharUnaryOperator left) |
default LCharFunction<R> |
lShrinkc(char a1) |
static <R> LCharFunction<R> |
lShrinked(LCharUnaryOperator left,
LBiCharFunction<R> func) |
static <R> LCharFunction<R> |
lShrinkedc(char a1,
LBiCharFunction<R> func) |
default R |
nestingApply(char a1,
char a2)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default LBiCharFunction<R> |
nonNullable()
Converts to function that makes sure that the result is not null.
|
default R |
nonNullApply(char a1,
char a2)
Function call that ensures the result is not null
|
static <R> R |
produce(char a1,
char a2)
Does nothing (LBiCharFunction) Function
|
static <R> LBiCharFunction<R> |
recursive(LFunction<LBiCharFunction<R>,LBiCharFunction<R>> selfLambda) |
default LCharFunction<R> |
rShrink(LCharUnaryOperator right) |
default LCharFunction<R> |
rShrinkc(char a2) |
static <R> LCharFunction<R> |
rShrinked(LCharUnaryOperator right,
LBiCharFunction<R> func) |
static <R> LCharFunction<R> |
rShrinkedc(char a2,
LBiCharFunction<R> func) |
static <R> LBiCharFunction<R> |
safe()
Safe instance.
|
static <R> LBiCharFunction<R> |
safe(LBiCharFunction<R> other)
Safe wrapping.
|
static <R> LSupplier<LBiCharFunction<R>> |
safeSupplier()
Safe instance supplier.
|
static <R> LSupplier<LBiCharFunction<R>> |
safeSupplier(LSupplier<LBiCharFunction<R>> supplier)
Safe supplier.
|
default R |
shovingApply(char a1,
char a2)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
default <V> LBiCharFunction<V> |
then(LFunction<? super R,? extends V> after)
Combines two functions together in a order.
|
default LBiCharConsumer |
thenConsume(LConsumer<? super R> after)
Combines two functions together in a order.
|
default LBiCharPredicate |
thenToBool(LPredicate<? super R> after)
Combines two functions together in a order.
|
default LCharBinaryOperator |
thenToChar(LToCharFunction<? super R> after)
Combines two functions together in a order.
|
static <R> void |
times(int max_i,
char a1,
char a2,
LBiCharFunction<R> func)
From-To.
|
static <R> R |
tryApply(char a1,
char a2,
LBiCharFunction<R> func) |
static <R> R |
tryApply(char a1,
char a2,
LBiCharFunction<R> func,
ExWF<RuntimeException> exF) |
static <R> R |
tryApply(char a1,
char a2,
LBiCharFunction<R> func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static <R> R |
tryApplyThen(char a1,
char a2,
LBiCharFunction<R> func,
LFunction<Throwable,R> handler) |
default LBiCharFunction<R> |
trying(ExWF<RuntimeException> exF) |
default LBiCharFunction<R> |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LBiCharFunction<R> |
tryingThen(LFunction<Throwable,R> handler) |
default R |
tupleApply(LCharPair args) |
static <R> LBiCharFunction<R> |
uncurry(LCharFunction<LCharFunction<R>> func) |
default LBiCharFunction |
untyped()
Cast that removes generics.
|
isFunctionformatTo, isAction, isConsumer, isOperator, isPredicate, isSupplierisThrowingstatic final String DESCRIPTION
R applyX(char a1, char a2) throws Throwable
Implement this, but call apply(char a1,char a2)
Throwabledefault R handlingApply(char a1, char a2, HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LBiCharFunction<R> handling(HandlingInstructions<Throwable,RuntimeException> handling)
default R apply(char a1, char a2, @Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default LBiCharFunction<R> trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default R apply(char a1, char a2, @Nonnull ExWF<RuntimeException> exF)
default LBiCharFunction<R> trying(@Nonnull ExWF<RuntimeException> exF)
default R nestingApply(char a1, char a2)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default R shovingApply(char a1, char a2)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static <R> R handlingApply(char a1,
char a2,
LBiCharFunction<R> func,
HandlingInstructions<Throwable,RuntimeException> handling)
static <R> R tryApply(char a1,
char a2,
LBiCharFunction<R> func)
static <R> R tryApply(char a1,
char a2,
LBiCharFunction<R> func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static <R> R tryApply(char a1,
char a2,
LBiCharFunction<R> func,
@Nonnull
ExWF<RuntimeException> exF)
static <R> R tryApplyThen(char a1,
char a2,
LBiCharFunction<R> func,
@Nonnull
LFunction<Throwable,R> handler)
default R failSafeApply(char a1, char a2, @Nonnull LBiCharFunction<R> failSafe)
static <R> R failSafeApply(char a1,
char a2,
LBiCharFunction<R> func,
@Nonnull
LBiCharFunction<R> failSafe)
static <R> LBiCharFunction<R> failSafe(LBiCharFunction<R> func, @Nonnull LBiCharFunction<R> failSafe)
@Nonnull default R nonNullApply(char a1, char a2)
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,
char a1,
char a2,
LBiCharFunction<R> func)
From-To. Intended to be used with non-capturing lambda.
static <R> void fromTill(int min_i,
int max_i,
char a1,
char a2,
LBiCharFunction<R> func)
From-To. Intended to be used with non-capturing lambda.
static <R> void times(int max_i,
char a1,
char a2,
LBiCharFunction<R> func)
From-To. Intended to be used with non-capturing lambda.
default LCharFunction<R> lShrink(LCharUnaryOperator left)
default LCharFunction<R> lShrinkc(char a1)
static <R> LCharFunction<R> lShrinked(LCharUnaryOperator left, LBiCharFunction<R> func)
static <R> LCharFunction<R> lShrinkedc(char a1, LBiCharFunction<R> func)
default LCharFunction<R> rShrink(LCharUnaryOperator right)
default LCharFunction<R> rShrinkc(char a2)
static <R> LCharFunction<R> rShrinked(LCharUnaryOperator right, LBiCharFunction<R> func)
static <R> LCharFunction<R> rShrinkedc(char a2, LBiCharFunction<R> func)
static <R> LBiCharFunction<R> uncurry(LCharFunction<LCharFunction<R>> func)
default LBiCharFunction untyped()
Cast that removes generics.
default <V2> LBiCharFunction<V2> cast()
Cast that replace generics.
static <V2,R> LBiCharFunction<V2> cast(LBiCharFunction<R> function)
Cast that replace generics.
default LSupplier<R> capture(char a1, char a2)
Captures arguments but delays the evaluation.
static <R> LBiCharFunction<R> constant(R r)
Creates function that always returns the same value.
@Nonnull static <R> LBiCharFunction<R> apply1st(@Nonnull LCharFunction<R> func)
Captures single parameter function into this interface where only 1st parameter will be used.
@Nonnull static <R> LBiCharFunction<R> apply2nd(@Nonnull LCharFunction<R> func)
Captures single parameter function into this interface where only 2nd parameter will be used.
@Nonnull static <R> LBiCharFunction<R> biCharFunc(@Nonnull LBiCharFunction<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> LBiCharFunction<R> recursive(@Nonnull LFunction<LBiCharFunction<R>,LBiCharFunction<R>> selfLambda)
@Nonnull static <R> LBiCharFunction<R> biCharFuncThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static <R> LBiCharFunction<R> biCharFuncThrowing(String message, @Nonnull ExMF<Throwable> exF)
@Nonnull static <R> LBiCharFunction.LChar1Char0Func<R> char1Char0Func(@Nonnull LBiCharFunction.LChar1Char0Func<R> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
static <R> R call(char a1,
char a2,
@Nonnull
LBiCharFunction<R> lambda)
@Nonnull static <R> LBiCharFunction<R> safe()
Safe instance. That always returns the same value (as produce).
@Nonnull static <R> LSupplier<LBiCharFunction<R>> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static <R> LBiCharFunction<R> safe(@Nullable LBiCharFunction<R> other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static <R> LSupplier<LBiCharFunction<R>> safeSupplier(@Nullable LSupplier<LBiCharFunction<R>> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default LBiCharFunction<R> compose(@Nonnull LCharUnaryOperator before1, @Nonnull LCharUnaryOperator before2)
Allows to manipulate the domain of the function.
static <R> LBiCharFunction<R> composed(@Nonnull LCharUnaryOperator before1, @Nonnull LCharUnaryOperator before2, LBiCharFunction<R> after)
@Nonnull default <V1,V2> LBiFunction<V1,V2,R> biCharFuncCompose(@Nonnull LToCharFunction<? super V1> before1, @Nonnull LToCharFunction<? super V2> before2)
Allows to manipulate the domain of the function.
static <V1,V2,R> LBiFunction<V1,V2,R> composed(@Nonnull LToCharFunction<? super V1> before1, @Nonnull LToCharFunction<? super V2> before2, LBiCharFunction<R> after)
@Nonnull default <V> LBiCharFunction<V> then(@Nonnull LFunction<? super R,? extends V> after)
Combines two functions together in a order.
@Nonnull default LBiCharConsumer thenConsume(@Nonnull LConsumer<? super R> after)
Combines two functions together in a order.
@Nonnull default LBiCharFunction<R> before(@Nonnull LBiCharConsumer before)
@Nonnull default LCharBinaryOperator thenToChar(@Nonnull LToCharFunction<? super R> after)
Combines two functions together in a order.
@Nonnull default LBiCharPredicate thenToBool(@Nonnull LPredicate<? super R> after)
Combines two functions together in a order.
@Nonnull default LBiCharFunction<R> nonNullable()
Converts to function that makes sure that the result is not null.
static <R> R produce(char a1,
char a2)
Does nothing (LBiCharFunction) Function
default <C1,C2> void forEach(IndexedRead<C1,aType.aChar> ia1, C1 source1, IndexedRead<C2,aType.aChar> ia2, C2 source2, 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> void iterate(SequentialRead<C1,I1,aType.aChar> sa1, C1 source1, IndexedRead<C2,aType.aChar> ia2, C2 source2, 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> void iterate(IndexedRead<C1,aType.aChar> ia1, C1 source1, SequentialRead<C2,I2,aType.aChar> sa2, C2 source2, 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> void iterate(SequentialRead<C1,I1,aType.aChar> sa1, C1 source1, SequentialRead<C2,I2,aType.aChar> sa2, C2 source2, 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.