@FunctionalInterface public interface LLongBinaryOperator extends java.util.function.LongBinaryOperator, MetaOperator, MetaInterface.NonThrowing, Codomain<aType.aLong>, Domain2<aType.aLong,aType.aLong>
Non-throwing functional interface (lambda) LLongBinaryOperator for Java 8.
Type: operator
Domain (lvl: 2): long a1,long a2
Co-domain: long
| Modifier and Type | Interface and Description |
|---|---|
static class |
LLongBinaryOperator.LLongBinaryOperatorSingle |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
static LLongBinaryOperator |
apply1stAsLong(LLongUnaryOperator func)
Captures single parameter function into this interface where only 1st parameter will be used.
|
static LLongBinaryOperator |
apply2ndAsLong(LLongUnaryOperator func)
Captures single parameter function into this interface where only 2nd parameter will be used.
|
default long |
applyAsLong(long a1,
long a2) |
default long |
applyAsLong(long a1,
long a2,
ExWF<RuntimeException> exF) |
default long |
applyAsLong(long a1,
long a2,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default long |
applyAsLongThen(long a1,
long a2,
LToLongFunction<Throwable> handler) |
long |
applyAsLongX(long a1,
long a2)
Implement this, but call applyAsLong(long a1,long a2)
|
static long |
call(long a1,
long a2,
LLongBinaryOperator lambda) |
default LLongSupplier |
capture(long a1,
long a2)
Captures arguments but delays the evaluation.
|
default LLongBinaryOperator |
compose(LLongUnaryOperator before1,
LLongUnaryOperator before2)
Allows to manipulate the domain of the function.
|
static LLongBinaryOperator |
composed(LLongUnaryOperator before1,
LLongUnaryOperator before2,
LLongBinaryOperator after) |
static <V1,V2> LToLongBiFunction<V1,V2> |
composed(LToLongFunction<? super V1> before1,
LToLongFunction<? super V2> before2,
LLongBinaryOperator after) |
static LLongBinaryOperator |
constant(long r)
Creates function that always returns the same value.
|
static LLongBinaryOperator |
failSafe(LLongBinaryOperator func,
LLongBinaryOperator failSafe) |
default long |
failSafeApplyAsLong(long a1,
long a2,
LLongBinaryOperator failSafe) |
static long |
failSafeApplyAsLong(long a1,
long a2,
LLongBinaryOperator func,
LLongBinaryOperator failSafe) |
default <C1,C2> void |
forEach(IndexedRead<C1,aType.aLong> ia1,
C1 source1,
IndexedRead<C2,aType.aLong> ia2,
C2 source2,
LLongConsumer 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,
long a1,
long a2,
LLongBinaryOperator func)
From-To.
|
static void |
fromTo(int min_i,
int max_i,
long a1,
long a2,
LLongBinaryOperator func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default LLongBinaryOperator |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default long |
handlingApplyAsLong(long a1,
long a2,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static long |
handlingApplyAsLong(long a1,
long a2,
LLongBinaryOperator func,
HandlingInstructions<Throwable,RuntimeException> handling) |
default <C1,C2,I2> void |
iterate(IndexedRead<C1,aType.aLong> ia1,
C1 source1,
SequentialRead<C2,I2,aType.aLong> sa2,
C2 source2,
LLongConsumer 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.aLong> sa1,
C1 source1,
IndexedRead<C2,aType.aLong> ia2,
C2 source2,
LLongConsumer 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.aLong> sa1,
C1 source1,
SequentialRead<C2,I2,aType.aLong> sa2,
C2 source2,
LLongConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
static LLongBinaryOperator |
longBinaryOp(LLongBinaryOperator lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <V1,V2> LToLongBiFunction<V1,V2> |
longBinaryOpCompose(LToLongFunction<? super V1> before1,
LToLongFunction<? super V2> before2)
Allows to manipulate the domain of the function.
|
static LLongBinaryOperator |
longBinaryOpThrowing(ExF<Throwable> exF) |
static LLongBinaryOperator |
longBinaryOpThrowing(String message,
ExMF<Throwable> exF) |
default LLongUnaryOperator |
lShrink(LLongUnaryOperator left) |
default LLongUnaryOperator |
lShrinkc(long a1) |
static LLongUnaryOperator |
lShrinked(LLongUnaryOperator left,
LLongBinaryOperator func) |
static LLongUnaryOperator |
lShrinkedc(long a1,
LLongBinaryOperator func) |
static LLongBinaryOperator |
max()
Returns function that returns the higher value.
|
static LLongBinaryOperator |
maxBy(Comparator<Long> comparator)
Creates function that returns the lesser value according to the comparator.
|
static LLongBinaryOperator |
min()
Returns function that returns the lower value.
|
static LLongBinaryOperator |
minBy(Comparator<Long> comparator)
Creates function that returns the lesser value according to the comparator.
|
default long |
nestingApplyAsLong(long a1,
long a2)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default long |
nonNullApplyAsLong(long a1,
long a2)
Just to mirror the method: Ensures the result is not null
|
static long |
produceLong(long a1,
long a2)
Does nothing (LLongBinaryOperator) Operator
|
static LLongBinaryOperator |
recursive(LFunction<LLongBinaryOperator,LLongBinaryOperator> selfLambda) |
default LLongUnaryOperator |
rShrink(LLongUnaryOperator right) |
default LLongUnaryOperator |
rShrinkc(long a2) |
static LLongUnaryOperator |
rShrinked(LLongUnaryOperator right,
LLongBinaryOperator func) |
static LLongUnaryOperator |
rShrinkedc(long a2,
LLongBinaryOperator func) |
static LLongBinaryOperator |
safe()
Safe instance.
|
static LLongBinaryOperator |
safe(LLongBinaryOperator other)
Safe wrapping.
|
static LSupplier<LLongBinaryOperator> |
safeSupplier()
Safe instance supplier.
|
static LSupplier<LLongBinaryOperator> |
safeSupplier(LSupplier<LLongBinaryOperator> supplier)
Safe supplier.
|
default long |
shovingApplyAsLong(long a1,
long a2)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
default <V> LBiLongFunction<V> |
then(LLongFunction<? extends V> after)
Combines two functions together in a order.
|
default LBiLongPredicate |
thenToBool(LLongPredicate after)
Combines two functions together in a order.
|
default LLongBinaryOperator |
thenToLong(LLongUnaryOperator after)
Combines two functions together in a order.
|
static void |
times(int max_i,
long a1,
long a2,
LLongBinaryOperator func)
From-To.
|
static long |
tryApplyAsLong(long a1,
long a2,
LLongBinaryOperator func) |
static long |
tryApplyAsLong(long a1,
long a2,
LLongBinaryOperator func,
ExWF<RuntimeException> exF) |
static long |
tryApplyAsLong(long a1,
long a2,
LLongBinaryOperator func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static long |
tryApplyAsLongThen(long a1,
long a2,
LLongBinaryOperator func,
LToLongFunction<Throwable> handler) |
default LLongBinaryOperator |
trying(ExWF<RuntimeException> exF) |
default LLongBinaryOperator |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LLongBinaryOperator |
tryingThen(LToLongFunction<Throwable> handler) |
default long |
tupleApplyAsLong(LLongPair args) |
static LLongBinaryOperator |
uncurry(LLongFunction<LLongUnaryOperator> func) |
static LLongBinaryOperator |
wrap(java.util.function.LongBinaryOperator other)
Wraps JRE instance.
|
isOperatorisFunctionformatTo, isAction, isConsumer, isPredicate, isSupplierisThrowingisThrowingstatic final String DESCRIPTION
default long applyAsLong(long a1,
long a2)
applyAsLong in interface java.util.function.LongBinaryOperatorlong applyAsLongX(long a1,
long a2)
throws Throwable
Implement this, but call applyAsLong(long a1,long a2)
Throwabledefault long tupleApplyAsLong(LLongPair args)
default long handlingApplyAsLong(long a1,
long a2,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LLongBinaryOperator handling(HandlingInstructions<Throwable,RuntimeException> handling)
default long applyAsLong(long a1,
long a2,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
default LLongBinaryOperator trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default long applyAsLong(long a1,
long a2,
@Nonnull
ExWF<RuntimeException> exF)
default LLongBinaryOperator trying(@Nonnull ExWF<RuntimeException> exF)
default long applyAsLongThen(long a1,
long a2,
@Nonnull
LToLongFunction<Throwable> handler)
default LLongBinaryOperator tryingThen(@Nonnull LToLongFunction<Throwable> handler)
default long nestingApplyAsLong(long a1,
long a2)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default long shovingApplyAsLong(long a1,
long a2)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static long handlingApplyAsLong(long a1,
long a2,
LLongBinaryOperator func,
HandlingInstructions<Throwable,RuntimeException> handling)
static long tryApplyAsLong(long a1,
long a2,
LLongBinaryOperator func)
static long tryApplyAsLong(long a1,
long a2,
LLongBinaryOperator func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static long tryApplyAsLong(long a1,
long a2,
LLongBinaryOperator func,
@Nonnull
ExWF<RuntimeException> exF)
static long tryApplyAsLongThen(long a1,
long a2,
LLongBinaryOperator func,
@Nonnull
LToLongFunction<Throwable> handler)
default long failSafeApplyAsLong(long a1,
long a2,
@Nonnull
LLongBinaryOperator failSafe)
static long failSafeApplyAsLong(long a1,
long a2,
LLongBinaryOperator func,
@Nonnull
LLongBinaryOperator failSafe)
static LLongBinaryOperator failSafe(LLongBinaryOperator func, @Nonnull LLongBinaryOperator failSafe)
default long nonNullApplyAsLong(long a1,
long 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,
long a1,
long a2,
LLongBinaryOperator func)
From-To. Intended to be used with non-capturing lambda.
static void fromTill(int min_i,
int max_i,
long a1,
long a2,
LLongBinaryOperator func)
From-To. Intended to be used with non-capturing lambda.
static void times(int max_i,
long a1,
long a2,
LLongBinaryOperator func)
From-To. Intended to be used with non-capturing lambda.
default LLongUnaryOperator lShrink(LLongUnaryOperator left)
default LLongUnaryOperator lShrinkc(long a1)
static LLongUnaryOperator lShrinked(LLongUnaryOperator left, LLongBinaryOperator func)
static LLongUnaryOperator lShrinkedc(long a1, LLongBinaryOperator func)
default LLongUnaryOperator rShrink(LLongUnaryOperator right)
default LLongUnaryOperator rShrinkc(long a2)
static LLongUnaryOperator rShrinked(LLongUnaryOperator right, LLongBinaryOperator func)
static LLongUnaryOperator rShrinkedc(long a2, LLongBinaryOperator func)
static LLongBinaryOperator uncurry(LLongFunction<LLongUnaryOperator> func)
default LLongSupplier capture(long a1, long a2)
Captures arguments but delays the evaluation.
static LLongBinaryOperator constant(long r)
Creates function that always returns the same value.
@Nonnull static LLongBinaryOperator apply1stAsLong(@Nonnull LLongUnaryOperator func)
Captures single parameter function into this interface where only 1st parameter will be used.
@Nonnull static LLongBinaryOperator apply2ndAsLong(@Nonnull LLongUnaryOperator func)
Captures single parameter function into this interface where only 2nd parameter will be used.
@Nonnull static LLongBinaryOperator longBinaryOp(@Nonnull LLongBinaryOperator lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static LLongBinaryOperator recursive(@Nonnull LFunction<LLongBinaryOperator,LLongBinaryOperator> selfLambda)
@Nonnull static LLongBinaryOperator longBinaryOpThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static LLongBinaryOperator longBinaryOpThrowing(String message, @Nonnull ExMF<Throwable> exF)
static long call(long a1,
long a2,
@Nonnull
LLongBinaryOperator lambda)
@Nonnull static LLongBinaryOperator wrap(java.util.function.LongBinaryOperator other)
Wraps JRE instance.
@Nonnull static LLongBinaryOperator safe()
Safe instance. That always returns the same value (as produceLong).
@Nonnull static LSupplier<LLongBinaryOperator> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static LLongBinaryOperator safe(@Nullable LLongBinaryOperator other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static LSupplier<LLongBinaryOperator> safeSupplier(@Nullable LSupplier<LLongBinaryOperator> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull static LLongBinaryOperator minBy(@Nonnull Comparator<Long> comparator)
Creates function that returns the lesser value according to the comparator.
java.util.function.BinaryOperator#minBy}@Nonnull static LLongBinaryOperator maxBy(@Nonnull Comparator<Long> comparator)
Creates function that returns the lesser value according to the comparator.
java.util.function.BinaryOperator#maxBy}@Nonnull static LLongBinaryOperator min()
Returns function that returns the lower value.
java.util.function.BinaryOperator#minBy}@Nonnull static LLongBinaryOperator max()
Returns function that returns the higher value.
java.util.function.BinaryOperator#maxBy}@Nonnull default LLongBinaryOperator compose(@Nonnull LLongUnaryOperator before1, @Nonnull LLongUnaryOperator before2)
Allows to manipulate the domain of the function.
static LLongBinaryOperator composed(@Nonnull LLongUnaryOperator before1, @Nonnull LLongUnaryOperator before2, LLongBinaryOperator after)
@Nonnull default <V1,V2> LToLongBiFunction<V1,V2> longBinaryOpCompose(@Nonnull LToLongFunction<? super V1> before1, @Nonnull LToLongFunction<? super V2> before2)
Allows to manipulate the domain of the function.
static <V1,V2> LToLongBiFunction<V1,V2> composed(@Nonnull LToLongFunction<? super V1> before1, @Nonnull LToLongFunction<? super V2> before2, LLongBinaryOperator after)
@Nonnull default <V> LBiLongFunction<V> then(@Nonnull LLongFunction<? extends V> after)
Combines two functions together in a order.
@Nonnull default LLongBinaryOperator thenToLong(@Nonnull LLongUnaryOperator after)
Combines two functions together in a order.
@Nonnull default LBiLongPredicate thenToBool(@Nonnull LLongPredicate after)
Combines two functions together in a order.
static long produceLong(long a1,
long a2)
Does nothing (LLongBinaryOperator) Operator
default <C1,C2> void forEach(IndexedRead<C1,aType.aLong> ia1, C1 source1, IndexedRead<C2,aType.aLong> ia2, C2 source2, LLongConsumer 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.aLong> sa1, C1 source1, IndexedRead<C2,aType.aLong> ia2, C2 source2, LLongConsumer 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.aLong> ia1, C1 source1, SequentialRead<C2,I2,aType.aLong> sa2, C2 source2, LLongConsumer 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.aLong> sa1, C1 source1, SequentialRead<C2,I2,aType.aLong> sa2, C2 source2, LLongConsumer 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.