@FunctionalInterface public interface LCharBinaryOperator extends MetaOperator, MetaInterface.NonThrowing, Codomain<aType.aChar>, Domain2<aType.aChar,aType.aChar>
Non-throwing functional interface (lambda) LCharBinaryOperator for Java 8.
Type: operator
Domain (lvl: 2): char a1,char a2
Co-domain: char
| Modifier and Type | Interface and Description |
|---|---|
static class |
LCharBinaryOperator.LCharBinaryOperatorSingle |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
static LCharBinaryOperator |
apply1stAsChar(LCharUnaryOperator func)
Captures single parameter function into this interface where only 1st parameter will be used.
|
static LCharBinaryOperator |
apply2ndAsChar(LCharUnaryOperator func)
Captures single parameter function into this interface where only 2nd parameter will be used.
|
default char |
applyAsChar(char a1,
char a2) |
default char |
applyAsChar(char a1,
char a2,
ExWF<RuntimeException> exF) |
default char |
applyAsChar(char a1,
char a2,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default char |
applyAsCharThen(char a1,
char a2,
LToCharFunction<Throwable> handler) |
char |
applyAsCharX(char a1,
char a2)
Implement this, but call applyAsChar(char a1,char a2)
|
static char |
call(char a1,
char a2,
LCharBinaryOperator lambda) |
default LCharSupplier |
capture(char a1,
char a2)
Captures arguments but delays the evaluation.
|
static LCharBinaryOperator |
charBinaryOp(LCharBinaryOperator lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <V1,V2> LToCharBiFunction<V1,V2> |
charBinaryOpCompose(LToCharFunction<? super V1> before1,
LToCharFunction<? super V2> before2)
Allows to manipulate the domain of the function.
|
static LCharBinaryOperator |
charBinaryOpThrowing(ExF<Throwable> exF) |
static LCharBinaryOperator |
charBinaryOpThrowing(String message,
ExMF<Throwable> exF) |
default LCharBinaryOperator |
compose(LCharUnaryOperator before1,
LCharUnaryOperator before2)
Allows to manipulate the domain of the function.
|
static LCharBinaryOperator |
composed(LCharUnaryOperator before1,
LCharUnaryOperator before2,
LCharBinaryOperator after) |
static <V1,V2> LToCharBiFunction<V1,V2> |
composed(LToCharFunction<? super V1> before1,
LToCharFunction<? super V2> before2,
LCharBinaryOperator after) |
static LCharBinaryOperator |
constant(char r)
Creates function that always returns the same value.
|
static LCharBinaryOperator |
failSafe(LCharBinaryOperator func,
LCharBinaryOperator failSafe) |
default char |
failSafeApplyAsChar(char a1,
char a2,
LCharBinaryOperator failSafe) |
static char |
failSafeApplyAsChar(char a1,
char a2,
LCharBinaryOperator func,
LCharBinaryOperator failSafe) |
default <C1,C2> void |
forEach(IndexedRead<C1,aType.aChar> ia1,
C1 source1,
IndexedRead<C2,aType.aChar> ia2,
C2 source2,
LCharConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
static void |
fromTill(int min_i,
int max_i,
char a1,
char a2,
LCharBinaryOperator func)
From-To.
|
static void |
fromTo(int min_i,
int max_i,
char a1,
char a2,
LCharBinaryOperator func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default LCharBinaryOperator |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default char |
handlingApplyAsChar(char a1,
char a2,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static char |
handlingApplyAsChar(char a1,
char a2,
LCharBinaryOperator 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,
LCharConsumer 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,
LCharConsumer 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,
LCharConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default LCharUnaryOperator |
lShrink(LCharUnaryOperator left) |
default LCharUnaryOperator |
lShrinkc(char a1) |
static LCharUnaryOperator |
lShrinked(LCharUnaryOperator left,
LCharBinaryOperator func) |
static LCharUnaryOperator |
lShrinkedc(char a1,
LCharBinaryOperator func) |
static LCharBinaryOperator |
max()
Returns function that returns the higher value.
|
static LCharBinaryOperator |
maxBy(Comparator<Character> comparator)
Creates function that returns the lesser value according to the comparator.
|
static LCharBinaryOperator |
min()
Returns function that returns the lower value.
|
static LCharBinaryOperator |
minBy(Comparator<Character> comparator)
Creates function that returns the lesser value according to the comparator.
|
default char |
nestingApplyAsChar(char a1,
char a2)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default char |
nonNullApplyAsChar(char a1,
char a2)
Just to mirror the method: Ensures the result is not null
|
static char |
produceChar(char a1,
char a2)
Does nothing (LCharBinaryOperator) Operator
|
static LCharBinaryOperator |
recursive(LFunction<LCharBinaryOperator,LCharBinaryOperator> selfLambda) |
default LCharUnaryOperator |
rShrink(LCharUnaryOperator right) |
default LCharUnaryOperator |
rShrinkc(char a2) |
static LCharUnaryOperator |
rShrinked(LCharUnaryOperator right,
LCharBinaryOperator func) |
static LCharUnaryOperator |
rShrinkedc(char a2,
LCharBinaryOperator func) |
static LCharBinaryOperator |
safe()
Safe instance.
|
static LCharBinaryOperator |
safe(LCharBinaryOperator other)
Safe wrapping.
|
static LSupplier<LCharBinaryOperator> |
safeSupplier()
Safe instance supplier.
|
static LSupplier<LCharBinaryOperator> |
safeSupplier(LSupplier<LCharBinaryOperator> supplier)
Safe supplier.
|
default char |
shovingApplyAsChar(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(LCharFunction<? extends V> after)
Combines two functions together in a order.
|
default LBiCharPredicate |
thenToBool(LCharPredicate after)
Combines two functions together in a order.
|
default LCharBinaryOperator |
thenToChar(LCharUnaryOperator after)
Combines two functions together in a order.
|
static void |
times(int max_i,
char a1,
char a2,
LCharBinaryOperator func)
From-To.
|
static char |
tryApplyAsChar(char a1,
char a2,
LCharBinaryOperator func) |
static char |
tryApplyAsChar(char a1,
char a2,
LCharBinaryOperator func,
ExWF<RuntimeException> exF) |
static char |
tryApplyAsChar(char a1,
char a2,
LCharBinaryOperator func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static char |
tryApplyAsCharThen(char a1,
char a2,
LCharBinaryOperator func,
LToCharFunction<Throwable> handler) |
default LCharBinaryOperator |
trying(ExWF<RuntimeException> exF) |
default LCharBinaryOperator |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LCharBinaryOperator |
tryingThen(LToCharFunction<Throwable> handler) |
default char |
tupleApplyAsChar(LCharPair args) |
static LCharBinaryOperator |
uncurry(LCharFunction<LCharUnaryOperator> func) |
isOperatorisFunctionformatTo, isAction, isConsumer, isPredicate, isSupplierisThrowingisThrowingstatic final String DESCRIPTION
default char applyAsChar(char a1,
char a2)
char applyAsCharX(char a1,
char a2)
throws Throwable
Implement this, but call applyAsChar(char a1,char a2)
Throwabledefault char tupleApplyAsChar(LCharPair args)
default char handlingApplyAsChar(char a1,
char a2,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LCharBinaryOperator handling(HandlingInstructions<Throwable,RuntimeException> handling)
default char applyAsChar(char a1,
char a2,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
default LCharBinaryOperator trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default char applyAsChar(char a1,
char a2,
@Nonnull
ExWF<RuntimeException> exF)
default LCharBinaryOperator trying(@Nonnull ExWF<RuntimeException> exF)
default char applyAsCharThen(char a1,
char a2,
@Nonnull
LToCharFunction<Throwable> handler)
default LCharBinaryOperator tryingThen(@Nonnull LToCharFunction<Throwable> handler)
default char nestingApplyAsChar(char a1,
char a2)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default char shovingApplyAsChar(char a1,
char a2)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static char handlingApplyAsChar(char a1,
char a2,
LCharBinaryOperator func,
HandlingInstructions<Throwable,RuntimeException> handling)
static char tryApplyAsChar(char a1,
char a2,
LCharBinaryOperator func)
static char tryApplyAsChar(char a1,
char a2,
LCharBinaryOperator func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static char tryApplyAsChar(char a1,
char a2,
LCharBinaryOperator func,
@Nonnull
ExWF<RuntimeException> exF)
static char tryApplyAsCharThen(char a1,
char a2,
LCharBinaryOperator func,
@Nonnull
LToCharFunction<Throwable> handler)
default char failSafeApplyAsChar(char a1,
char a2,
@Nonnull
LCharBinaryOperator failSafe)
static char failSafeApplyAsChar(char a1,
char a2,
LCharBinaryOperator func,
@Nonnull
LCharBinaryOperator failSafe)
static LCharBinaryOperator failSafe(LCharBinaryOperator func, @Nonnull LCharBinaryOperator failSafe)
default char nonNullApplyAsChar(char a1,
char a2)
Just to mirror the method: Ensures the result is not null
@Nonnull default String functionalInterfaceDescription()
Returns description of the functional interface.
functionalInterfaceDescription in interface MetaFunctionalInterfacestatic void fromTo(int min_i,
int max_i,
char a1,
char a2,
LCharBinaryOperator func)
From-To. Intended to be used with non-capturing lambda.
static void fromTill(int min_i,
int max_i,
char a1,
char a2,
LCharBinaryOperator func)
From-To. Intended to be used with non-capturing lambda.
static void times(int max_i,
char a1,
char a2,
LCharBinaryOperator func)
From-To. Intended to be used with non-capturing lambda.
default LCharUnaryOperator lShrink(LCharUnaryOperator left)
default LCharUnaryOperator lShrinkc(char a1)
static LCharUnaryOperator lShrinked(LCharUnaryOperator left, LCharBinaryOperator func)
static LCharUnaryOperator lShrinkedc(char a1, LCharBinaryOperator func)
default LCharUnaryOperator rShrink(LCharUnaryOperator right)
default LCharUnaryOperator rShrinkc(char a2)
static LCharUnaryOperator rShrinked(LCharUnaryOperator right, LCharBinaryOperator func)
static LCharUnaryOperator rShrinkedc(char a2, LCharBinaryOperator func)
static LCharBinaryOperator uncurry(LCharFunction<LCharUnaryOperator> func)
default LCharSupplier capture(char a1, char a2)
Captures arguments but delays the evaluation.
static LCharBinaryOperator constant(char r)
Creates function that always returns the same value.
@Nonnull static LCharBinaryOperator apply1stAsChar(@Nonnull LCharUnaryOperator func)
Captures single parameter function into this interface where only 1st parameter will be used.
@Nonnull static LCharBinaryOperator apply2ndAsChar(@Nonnull LCharUnaryOperator func)
Captures single parameter function into this interface where only 2nd parameter will be used.
@Nonnull static LCharBinaryOperator charBinaryOp(@Nonnull LCharBinaryOperator lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static LCharBinaryOperator recursive(@Nonnull LFunction<LCharBinaryOperator,LCharBinaryOperator> selfLambda)
@Nonnull static LCharBinaryOperator charBinaryOpThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static LCharBinaryOperator charBinaryOpThrowing(String message, @Nonnull ExMF<Throwable> exF)
static char call(char a1,
char a2,
@Nonnull
LCharBinaryOperator lambda)
@Nonnull static LCharBinaryOperator safe()
Safe instance. That always returns the same value (as produceChar).
@Nonnull static LSupplier<LCharBinaryOperator> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static LCharBinaryOperator safe(@Nullable LCharBinaryOperator other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static LSupplier<LCharBinaryOperator> safeSupplier(@Nullable LSupplier<LCharBinaryOperator> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull static LCharBinaryOperator minBy(@Nonnull Comparator<Character> comparator)
Creates function that returns the lesser value according to the comparator.
java.util.function.BinaryOperator#minBy}@Nonnull static LCharBinaryOperator maxBy(@Nonnull Comparator<Character> comparator)
Creates function that returns the lesser value according to the comparator.
java.util.function.BinaryOperator#maxBy}@Nonnull static LCharBinaryOperator min()
Returns function that returns the lower value.
java.util.function.BinaryOperator#minBy}@Nonnull static LCharBinaryOperator max()
Returns function that returns the higher value.
java.util.function.BinaryOperator#maxBy}@Nonnull default LCharBinaryOperator compose(@Nonnull LCharUnaryOperator before1, @Nonnull LCharUnaryOperator before2)
Allows to manipulate the domain of the function.
static LCharBinaryOperator composed(@Nonnull LCharUnaryOperator before1, @Nonnull LCharUnaryOperator before2, LCharBinaryOperator after)
@Nonnull default <V1,V2> LToCharBiFunction<V1,V2> charBinaryOpCompose(@Nonnull LToCharFunction<? super V1> before1, @Nonnull LToCharFunction<? super V2> before2)
Allows to manipulate the domain of the function.
static <V1,V2> LToCharBiFunction<V1,V2> composed(@Nonnull LToCharFunction<? super V1> before1, @Nonnull LToCharFunction<? super V2> before2, LCharBinaryOperator after)
@Nonnull default <V> LBiCharFunction<V> then(@Nonnull LCharFunction<? extends V> after)
Combines two functions together in a order.
@Nonnull default LCharBinaryOperator thenToChar(@Nonnull LCharUnaryOperator after)
Combines two functions together in a order.
@Nonnull default LBiCharPredicate thenToBool(@Nonnull LCharPredicate after)
Combines two functions together in a order.
static char produceChar(char a1,
char a2)
Does nothing (LCharBinaryOperator) Operator
default <C1,C2> void forEach(IndexedRead<C1,aType.aChar> ia1, C1 source1, IndexedRead<C2,aType.aChar> ia2, C2 source2, LCharConsumer 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, LCharConsumer 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, LCharConsumer 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, LCharConsumer 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.