@FunctionalInterface public interface LOiToByteFunction<T> extends MetaFunction, MetaInterface.NonThrowing, OiFunction<T,aType.aByte>, Codomain<aType.aByte>, Domain2<aType.a<T>,aType.aInt>
Non-throwing functional interface (lambda) LOiToByteFunction for Java 8.
Type: function
Domain (lvl: 2): T a1,int a2
Co-domain: byte
Special case of function that corresponds to expressions like (list, index) -> List::get
| Modifier and Type | Interface and Description |
|---|---|
static interface |
LOiToByteFunction.LIntObjToByteFunc<T>
Permutation of LOiToByteFunction for method references.
|
static class |
LOiToByteFunction.LOiToByteFunctionSingle<T> |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
static <T> LOiToByteFunction<T> |
apply1stAsByte(LToByteFunction<T> func)
Captures single parameter function into this interface where only 1st parameter will be used.
|
static <T> LOiToByteFunction<T> |
apply2ndAsByte(LIntToByteFunction func)
Captures single parameter function into this interface where only 2nd parameter will be used.
|
default byte |
applyAsByte(T a1,
int a2) |
default byte |
applyAsByte(T a1,
int a2,
ExWF<RuntimeException> exF) |
default byte |
applyAsByte(T a1,
int a2,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default byte |
applyAsByteThen(T a1,
int a2,
LToByteFunction<Throwable> handler) |
byte |
applyAsByteX(T a1,
int a2)
Implement this, but call applyAsByte(T a1,int a2)
|
static <T> byte |
call(T a1,
int a2,
LOiToByteFunction<T> lambda) |
default LByteSupplier |
capture(T a1,
int a2)
Captures arguments but delays the evaluation.
|
default <V2> LOiToByteFunction<V2> |
cast()
Cast that replace generics.
|
static <V2,T> LOiToByteFunction<V2> |
cast(LOiToByteFunction<T> function)
Cast that replace generics.
|
default <V1> LOiToByteFunction<V1> |
compose(LFunction<? super V1,? extends T> before1,
LIntUnaryOperator before2)
Allows to manipulate the domain of the function.
|
static <V1,T> LOiToByteFunction<V1> |
composed(LFunction<? super V1,? extends T> before1,
LIntUnaryOperator before2,
LOiToByteFunction<T> after) |
static <V1,V2,T> LToByteBiFunction<V1,V2> |
composed(LFunction<? super V1,? extends T> before1,
LToIntFunction<? super V2> before2,
LOiToByteFunction<T> after) |
static <T> LOiToByteFunction<T> |
constant(byte r)
Creates function that always returns the same value.
|
static <T> LOiToByteFunction<T> |
failSafe(LOiToByteFunction<T> func,
LOiToByteFunction<T> failSafe) |
default byte |
failSafeApplyAsByte(T a1,
int a2,
LOiToByteFunction<T> failSafe) |
static <T> byte |
failSafeApplyAsByte(T a1,
int a2,
LOiToByteFunction<T> func,
LOiToByteFunction<T> failSafe) |
default <C1,C2> void |
forEach(IndexedRead<C1,aType.a<T>> ia1,
C1 source1,
IndexedRead<C2,aType.aInt> ia2,
C2 source2,
LByteConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
static <T> void |
fromTill(int min_a2,
int max_a2,
T a1,
LOiToByteFunction<T> func)
From-To.
|
static <T> void |
fromTo(int min_a2,
int max_a2,
T a1,
LOiToByteFunction<T> func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default LOiToByteFunction<T> |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default byte |
handlingApplyAsByte(T a1,
int a2,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static <T> byte |
handlingApplyAsByte(T a1,
int a2,
LOiToByteFunction<T> func,
HandlingInstructions<Throwable,RuntimeException> handling) |
static <T> LOiToByteFunction.LIntObjToByteFunc<T> |
intObjToByteFunc(LOiToByteFunction.LIntObjToByteFunc<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <C1,C2,I2> void |
iterate(IndexedRead<C1,aType.a<T>> ia1,
C1 source1,
SequentialRead<C2,I2,aType.aInt> sa2,
C2 source2,
LByteConsumer 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.a<T>> sa1,
C1 source1,
IndexedRead<C2,aType.aInt> ia2,
C2 source2,
LByteConsumer 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.a<T>> sa1,
C1 source1,
SequentialRead<C2,I2,aType.aInt> sa2,
C2 source2,
LByteConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default LIntToByteFunction |
lShrink(LIntFunction<T> left) |
default LIntToByteFunction |
lShrinkc(T a1) |
static <T> LIntToByteFunction |
lShrinked(LIntFunction<T> left,
LOiToByteFunction<T> func) |
static <T> LIntToByteFunction |
lShrinkedc(T a1,
LOiToByteFunction<T> func) |
default byte |
nestingApplyAsByte(T a1,
int a2)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default byte |
nonNullApplyAsByte(T a1,
int a2)
Just to mirror the method: Ensures the result is not null
|
static <T> LOiToByteFunction<T> |
oiToByteFunc(LOiToByteFunction<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <V1,V2> LToByteBiFunction<V1,V2> |
oiToByteFuncCompose(LFunction<? super V1,? extends T> before1,
LToIntFunction<? super V2> before2)
Allows to manipulate the domain of the function.
|
static <T> LOiToByteFunction<T> |
oiToByteFuncThrowing(ExF<Throwable> exF) |
static <T> LOiToByteFunction<T> |
oiToByteFuncThrowing(String message,
ExMF<Throwable> exF) |
static <T> byte |
produceByte(int a2,
T a1)
Does nothing (LOiToByteFunction.LIntObjToByteFunc) Function
|
static <T> byte |
produceByte(T a1,
int a2)
Does nothing (LOiToByteFunction) Function
|
static <T> LOiToByteFunction<T> |
recursive(LFunction<LOiToByteFunction<T>,LOiToByteFunction<T>> selfLambda) |
default LToByteFunction<T> |
rShrink(LToIntFunction<T> right) |
default LToByteFunction<T> |
rShrinkc(int a2) |
static <T> LToByteFunction<T> |
rShrinked(LToIntFunction<T> right,
LOiToByteFunction<T> func) |
static <T> LToByteFunction<T> |
rShrinkedc(int a2,
LOiToByteFunction<T> func) |
static <T> LOiToByteFunction<T> |
safe()
Safe instance.
|
static <T> LOiToByteFunction<T> |
safe(LOiToByteFunction<T> other)
Safe wrapping.
|
static <T> LSupplier<LOiToByteFunction<T>> |
safeSupplier()
Safe instance supplier.
|
static <T> LSupplier<LOiToByteFunction<T>> |
safeSupplier(LSupplier<LOiToByteFunction<T>> supplier)
Safe supplier.
|
default byte |
shovingApplyAsByte(T a1,
int a2)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
default <V> LOiFunction<T,V> |
then(LByteFunction<? extends V> after)
Combines two functions together in a order.
|
default LObjIntPredicate<T> |
thenToBool(LBytePredicate after)
Combines two functions together in a order.
|
default LOiToByteFunction<T> |
thenToByte(LByteUnaryOperator after)
Combines two functions together in a order.
|
default LOiToCharFunction<T> |
thenToChar(LByteToCharFunction after)
Combines two functions together in a order.
|
default LOiToDblFunction<T> |
thenToDbl(LByteToDblFunction after)
Combines two functions together in a order.
|
default LOiToFltFunction<T> |
thenToFlt(LByteToFltFunction after)
Combines two functions together in a order.
|
default LOiToIntFunction<T> |
thenToInt(LByteToIntFunction after)
Combines two functions together in a order.
|
default LOiToLongFunction<T> |
thenToLong(LByteToLongFunction after)
Combines two functions together in a order.
|
default LOiToSrtFunction<T> |
thenToSrt(LByteToSrtFunction after)
Combines two functions together in a order.
|
static <T> void |
times(int max_a2,
T a1,
LOiToByteFunction<T> func)
From-To.
|
static <T> byte |
tryApplyAsByte(T a1,
int a2,
LOiToByteFunction<T> func) |
static <T> byte |
tryApplyAsByte(T a1,
int a2,
LOiToByteFunction<T> func,
ExWF<RuntimeException> exF) |
static <T> byte |
tryApplyAsByte(T a1,
int a2,
LOiToByteFunction<T> func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static <T> byte |
tryApplyAsByteThen(T a1,
int a2,
LOiToByteFunction<T> func,
LToByteFunction<Throwable> handler) |
default LOiToByteFunction<T> |
trying(ExWF<RuntimeException> exF) |
default LOiToByteFunction<T> |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LOiToByteFunction<T> |
tryingThen(LToByteFunction<Throwable> handler) |
default byte |
tupleApplyAsByte(LObjIntPair<T> args) |
static <T> LOiToByteFunction<T> |
uncurry(LFunction<T,LIntToByteFunction> func) |
default LOiToByteFunction |
untyped()
Cast that removes generics.
|
isThrowingisFunctionformatTo, isAction, isConsumer, isOperator, isPredicate, isSupplierstatic final String DESCRIPTION
default byte applyAsByte(T a1, int a2)
byte applyAsByteX(T a1, int a2) throws Throwable
Implement this, but call applyAsByte(T a1,int a2)
Throwabledefault byte tupleApplyAsByte(LObjIntPair<T> args)
default byte handlingApplyAsByte(T a1, int a2, HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LOiToByteFunction<T> handling(HandlingInstructions<Throwable,RuntimeException> handling)
default byte applyAsByte(T a1, int a2, @Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default LOiToByteFunction<T> trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default byte applyAsByte(T a1, int a2, @Nonnull ExWF<RuntimeException> exF)
default LOiToByteFunction<T> trying(@Nonnull ExWF<RuntimeException> exF)
default byte applyAsByteThen(T a1, int a2, @Nonnull LToByteFunction<Throwable> handler)
default LOiToByteFunction<T> tryingThen(@Nonnull LToByteFunction<Throwable> handler)
default byte nestingApplyAsByte(T a1, int a2)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default byte shovingApplyAsByte(T a1, int a2)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static <T> byte handlingApplyAsByte(T a1,
int a2,
LOiToByteFunction<T> func,
HandlingInstructions<Throwable,RuntimeException> handling)
static <T> byte tryApplyAsByte(T a1,
int a2,
LOiToByteFunction<T> func)
static <T> byte tryApplyAsByte(T a1,
int a2,
LOiToByteFunction<T> func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static <T> byte tryApplyAsByte(T a1,
int a2,
LOiToByteFunction<T> func,
@Nonnull
ExWF<RuntimeException> exF)
static <T> byte tryApplyAsByteThen(T a1,
int a2,
LOiToByteFunction<T> func,
@Nonnull
LToByteFunction<Throwable> handler)
default byte failSafeApplyAsByte(T a1, int a2, @Nonnull LOiToByteFunction<T> failSafe)
static <T> byte failSafeApplyAsByte(T a1,
int a2,
LOiToByteFunction<T> func,
@Nonnull
LOiToByteFunction<T> failSafe)
static <T> LOiToByteFunction<T> failSafe(LOiToByteFunction<T> func, @Nonnull LOiToByteFunction<T> failSafe)
default byte nonNullApplyAsByte(T a1, int 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 <T> void fromTo(int min_a2,
int max_a2,
T a1,
LOiToByteFunction<T> func)
From-To. Intended to be used with non-capturing lambda.
static <T> void fromTill(int min_a2,
int max_a2,
T a1,
LOiToByteFunction<T> func)
From-To. Intended to be used with non-capturing lambda.
static <T> void times(int max_a2,
T a1,
LOiToByteFunction<T> func)
From-To. Intended to be used with non-capturing lambda.
default LIntToByteFunction lShrink(LIntFunction<T> left)
default LIntToByteFunction lShrinkc(T a1)
static <T> LIntToByteFunction lShrinked(LIntFunction<T> left, LOiToByteFunction<T> func)
static <T> LIntToByteFunction lShrinkedc(T a1, LOiToByteFunction<T> func)
default LToByteFunction<T> rShrink(LToIntFunction<T> right)
default LToByteFunction<T> rShrinkc(int a2)
static <T> LToByteFunction<T> rShrinked(LToIntFunction<T> right, LOiToByteFunction<T> func)
static <T> LToByteFunction<T> rShrinkedc(int a2, LOiToByteFunction<T> func)
static <T> LOiToByteFunction<T> uncurry(LFunction<T,LIntToByteFunction> func)
default LOiToByteFunction untyped()
Cast that removes generics.
default <V2> LOiToByteFunction<V2> cast()
Cast that replace generics.
static <V2,T> LOiToByteFunction<V2> cast(LOiToByteFunction<T> function)
Cast that replace generics.
default LByteSupplier capture(T a1, int a2)
Captures arguments but delays the evaluation.
static <T> LOiToByteFunction<T> constant(byte r)
Creates function that always returns the same value.
@Nonnull static <T> LOiToByteFunction<T> apply1stAsByte(@Nonnull LToByteFunction<T> func)
Captures single parameter function into this interface where only 1st parameter will be used.
@Nonnull static <T> LOiToByteFunction<T> apply2ndAsByte(@Nonnull LIntToByteFunction func)
Captures single parameter function into this interface where only 2nd parameter will be used.
@Nonnull static <T> LOiToByteFunction<T> oiToByteFunc(@Nonnull LOiToByteFunction<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static <T> LOiToByteFunction<T> recursive(@Nonnull LFunction<LOiToByteFunction<T>,LOiToByteFunction<T>> selfLambda)
@Nonnull static <T> LOiToByteFunction<T> oiToByteFuncThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static <T> LOiToByteFunction<T> oiToByteFuncThrowing(String message, @Nonnull ExMF<Throwable> exF)
@Nonnull static <T> LOiToByteFunction.LIntObjToByteFunc<T> intObjToByteFunc(@Nonnull LOiToByteFunction.LIntObjToByteFunc<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
static <T> byte call(T a1,
int a2,
@Nonnull
LOiToByteFunction<T> lambda)
@Nonnull static <T> LOiToByteFunction<T> safe()
Safe instance. That always returns the same value (as produceByte).
@Nonnull static <T> LSupplier<LOiToByteFunction<T>> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static <T> LOiToByteFunction<T> safe(@Nullable LOiToByteFunction<T> other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static <T> LSupplier<LOiToByteFunction<T>> safeSupplier(@Nullable LSupplier<LOiToByteFunction<T>> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default <V1> LOiToByteFunction<V1> compose(@Nonnull LFunction<? super V1,? extends T> before1, @Nonnull LIntUnaryOperator before2)
Allows to manipulate the domain of the function.
static <V1,T> LOiToByteFunction<V1> composed(@Nonnull LFunction<? super V1,? extends T> before1, @Nonnull LIntUnaryOperator before2, LOiToByteFunction<T> after)
@Nonnull default <V1,V2> LToByteBiFunction<V1,V2> oiToByteFuncCompose(@Nonnull LFunction<? super V1,? extends T> before1, @Nonnull LToIntFunction<? super V2> before2)
Allows to manipulate the domain of the function.
static <V1,V2,T> LToByteBiFunction<V1,V2> composed(@Nonnull LFunction<? super V1,? extends T> before1, @Nonnull LToIntFunction<? super V2> before2, LOiToByteFunction<T> after)
@Nonnull default <V> LOiFunction<T,V> then(@Nonnull LByteFunction<? extends V> after)
Combines two functions together in a order.
@Nonnull default LOiToByteFunction<T> thenToByte(@Nonnull LByteUnaryOperator after)
Combines two functions together in a order.
@Nonnull default LOiToSrtFunction<T> thenToSrt(@Nonnull LByteToSrtFunction after)
Combines two functions together in a order.
@Nonnull default LOiToIntFunction<T> thenToInt(@Nonnull LByteToIntFunction after)
Combines two functions together in a order.
@Nonnull default LOiToLongFunction<T> thenToLong(@Nonnull LByteToLongFunction after)
Combines two functions together in a order.
@Nonnull default LOiToFltFunction<T> thenToFlt(@Nonnull LByteToFltFunction after)
Combines two functions together in a order.
@Nonnull default LOiToDblFunction<T> thenToDbl(@Nonnull LByteToDblFunction after)
Combines two functions together in a order.
@Nonnull default LOiToCharFunction<T> thenToChar(@Nonnull LByteToCharFunction after)
Combines two functions together in a order.
@Nonnull default LObjIntPredicate<T> thenToBool(@Nonnull LBytePredicate after)
Combines two functions together in a order.
static <T> byte produceByte(T a1,
int a2)
Does nothing (LOiToByteFunction) Function
static <T> byte produceByte(int a2,
T a1)
Does nothing (LOiToByteFunction.LIntObjToByteFunc) Function
default <C1,C2> void forEach(IndexedRead<C1,aType.a<T>> ia1, C1 source1, IndexedRead<C2,aType.aInt> ia2, C2 source2, LByteConsumer 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.a<T>> sa1, C1 source1, IndexedRead<C2,aType.aInt> ia2, C2 source2, LByteConsumer 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.a<T>> ia1, C1 source1, SequentialRead<C2,I2,aType.aInt> sa2, C2 source2, LByteConsumer 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.a<T>> sa1, C1 source1, SequentialRead<C2,I2,aType.aInt> sa2, C2 source2, LByteConsumer 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.