@FunctionalInterface public interface LByteFunction<R> extends MetaFunction, MetaInterface.NonThrowing, Codomain<aType.a<R>>, Domain1<aType.aByte>
Non-throwing functional interface (lambda) LByteFunction for Java 8.
Type: function
Domain (lvl: 1): byte a
Co-domain: R
| Modifier and Type | Interface and Description |
|---|---|
static class |
LByteFunction.LByteFunctionSingle<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 LByteFunction<R> |
after(LConsumer<? super R> after) |
default R |
apply(byte a) |
default R |
apply(byte a,
ExWF<RuntimeException> exF) |
default R |
apply(byte a,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default R |
applyThen(byte a,
LFunction<Throwable,R> handler) |
R |
applyX(byte a)
Implement this, but call apply(byte a)
|
default LByteFunction<R> |
before(LByteConsumer before) |
static <R> LByteFunction<R> |
byteFunc(LByteFunction<R> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <V> LFunction<V,R> |
byteFuncCompose(LToByteFunction<? super V> before)
Allows to manipulate the domain of the function.
|
static <R> LByteFunction<R> |
byteFuncThrowing(ExF<Throwable> exF) |
static <R> LByteFunction<R> |
byteFuncThrowing(String message,
ExMF<Throwable> exF) |
static <R> R |
call(byte a,
LByteFunction<R> lambda) |
default LSupplier<R> |
capture(byte a)
Captures arguments but delays the evaluation.
|
default <V2> LByteFunction<V2> |
cast()
Cast that replace generics.
|
static <V2,R> LByteFunction<V2> |
cast(LByteFunction<R> function)
Cast that replace generics.
|
default LByteFunction<R> |
compose(LByteUnaryOperator before)
Allows to manipulate the domain of the function.
|
static <R> LByteFunction<R> |
composed(LByteUnaryOperator before,
LByteFunction<R> after) |
static <V,R> LFunction<V,R> |
composed(LToByteFunction<? super V> before,
LByteFunction<R> after) |
static <R> LByteFunction<R> |
constant(R r)
Creates function that always returns the same value.
|
static <R> LByteFunction<R> |
failSafe(LByteFunction<R> func,
LByteFunction<R> failSafe) |
default R |
failSafeApply(byte a,
LByteFunction<R> failSafe) |
static <R> R |
failSafeApply(byte a,
LByteFunction<R> func,
LByteFunction<R> failSafe) |
default <C0> void |
forEach(IndexedRead<C0,aType.aByte> ia,
C0 source,
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,
byte a,
LByteFunction<R> func)
From-To.
|
static <R> void |
fromTo(int min_i,
int max_i,
byte a,
LByteFunction<R> func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default LByteFunction<R> |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default R |
handlingApply(byte a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static <R> R |
handlingApply(byte a,
LByteFunction<R> func,
HandlingInstructions<Throwable,RuntimeException> handling) |
default <C0,I0> void |
iterate(SequentialRead<C0,I0,aType.aByte> sa,
C0 source,
LConsumer<? super R> consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default R |
nestingApply(byte a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default LByteFunction<R> |
nonNullable()
Converts to function that makes sure that the result is not null.
|
default R |
nonNullApply(byte a)
Function call that ensures the result is not null
|
static <R> R |
produce(byte a)
Does nothing (LByteFunction) Function
|
static <R> LByteFunction<R> |
recursive(LFunction<LByteFunction<R>,LByteFunction<R>> selfLambda) |
static <R> LByteFunction<R> |
safe()
Safe instance.
|
static <R> LByteFunction<R> |
safe(LByteFunction<R> other)
Safe wrapping.
|
static <R> LSupplier<LByteFunction<R>> |
safeSupplier()
Safe instance supplier.
|
static <R> LSupplier<LByteFunction<R>> |
safeSupplier(LSupplier<LByteFunction<R>> supplier)
Safe supplier.
|
default R |
shovingApply(byte a)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
default <V> LByteFunction<V> |
then(LFunction<? super R,? extends V> after)
Combines two functions together in a order.
|
default LByteConsumer |
thenConsume(LConsumer<? super R> after)
Combines two functions together in a order.
|
default LBytePredicate |
thenToBool(LPredicate<? super R> after)
Combines two functions together in a order.
|
default LByteUnaryOperator |
thenToByte(LToByteFunction<? super R> after)
Combines two functions together in a order.
|
default LByteToCharFunction |
thenToChar(LToCharFunction<? super R> after)
Combines two functions together in a order.
|
default LByteToDblFunction |
thenToDbl(LToDblFunction<? super R> after)
Combines two functions together in a order.
|
default LByteToFltFunction |
thenToFlt(LToFltFunction<? super R> after)
Combines two functions together in a order.
|
default LByteToIntFunction |
thenToInt(LToIntFunction<? super R> after)
Combines two functions together in a order.
|
default LByteToLongFunction |
thenToLong(LToLongFunction<? super R> after)
Combines two functions together in a order.
|
default LByteToSrtFunction |
thenToSrt(LToSrtFunction<? super R> after)
Combines two functions together in a order.
|
static <R> void |
times(int max_i,
byte a,
LByteFunction<R> func)
From-To.
|
static <R> R |
tryApply(byte a,
LByteFunction<R> func) |
static <R> R |
tryApply(byte a,
LByteFunction<R> func,
ExWF<RuntimeException> exF) |
static <R> R |
tryApply(byte a,
LByteFunction<R> func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static <R> R |
tryApplyThen(byte a,
LByteFunction<R> func,
LFunction<Throwable,R> handler) |
default LByteFunction<R> |
trying(ExWF<RuntimeException> exF) |
default LByteFunction<R> |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LByteFunction<R> |
tryingThen(LFunction<Throwable,R> handler) |
default R |
tupleApply(LByteSingle args) |
default LByteFunction |
untyped()
Cast that removes generics.
|
isFunctionformatTo, isAction, isConsumer, isOperator, isPredicate, isSupplierisThrowingstatic final String DESCRIPTION
default R tupleApply(LByteSingle args)
default R handlingApply(byte a, HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LByteFunction<R> handling(HandlingInstructions<Throwable,RuntimeException> handling)
default R apply(byte a, @Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default LByteFunction<R> trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default R apply(byte a, @Nonnull ExWF<RuntimeException> exF)
default LByteFunction<R> trying(@Nonnull ExWF<RuntimeException> exF)
default R nestingApply(byte a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default R shovingApply(byte a)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static <R> R handlingApply(byte a,
LByteFunction<R> func,
HandlingInstructions<Throwable,RuntimeException> handling)
static <R> R tryApply(byte a,
LByteFunction<R> func)
static <R> R tryApply(byte a,
LByteFunction<R> func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static <R> R tryApply(byte a,
LByteFunction<R> func,
@Nonnull
ExWF<RuntimeException> exF)
static <R> R tryApplyThen(byte a,
LByteFunction<R> func,
@Nonnull
LFunction<Throwable,R> handler)
default R failSafeApply(byte a, @Nonnull LByteFunction<R> failSafe)
static <R> R failSafeApply(byte a,
LByteFunction<R> func,
@Nonnull
LByteFunction<R> failSafe)
static <R> LByteFunction<R> failSafe(LByteFunction<R> func, @Nonnull LByteFunction<R> failSafe)
@Nonnull default R nonNullApply(byte a)
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,
byte a,
LByteFunction<R> func)
From-To. Intended to be used with non-capturing lambda.
static <R> void fromTill(int min_i,
int max_i,
byte a,
LByteFunction<R> func)
From-To. Intended to be used with non-capturing lambda.
static <R> void times(int max_i,
byte a,
LByteFunction<R> func)
From-To. Intended to be used with non-capturing lambda.
default LByteFunction untyped()
Cast that removes generics.
default <V2> LByteFunction<V2> cast()
Cast that replace generics.
static <V2,R> LByteFunction<V2> cast(LByteFunction<R> function)
Cast that replace generics.
static <R> LByteFunction<R> constant(R r)
Creates function that always returns the same value.
@Nonnull static <R> LByteFunction<R> byteFunc(@Nonnull LByteFunction<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> LByteFunction<R> recursive(@Nonnull LFunction<LByteFunction<R>,LByteFunction<R>> selfLambda)
@Nonnull static <R> LByteFunction<R> byteFuncThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static <R> LByteFunction<R> byteFuncThrowing(String message, @Nonnull ExMF<Throwable> exF)
static <R> R call(byte a,
@Nonnull
LByteFunction<R> lambda)
@Nonnull static <R> LByteFunction<R> safe()
Safe instance. That always returns the same value (as produce).
@Nonnull static <R> LSupplier<LByteFunction<R>> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static <R> LByteFunction<R> safe(@Nullable LByteFunction<R> other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static <R> LSupplier<LByteFunction<R>> safeSupplier(@Nullable LSupplier<LByteFunction<R>> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default LByteFunction<R> compose(@Nonnull LByteUnaryOperator before)
Allows to manipulate the domain of the function.
static <R> LByteFunction<R> composed(@Nonnull LByteUnaryOperator before, LByteFunction<R> after)
@Nonnull default <V> LFunction<V,R> byteFuncCompose(@Nonnull LToByteFunction<? super V> before)
Allows to manipulate the domain of the function.
static <V,R> LFunction<V,R> composed(@Nonnull LToByteFunction<? super V> before, LByteFunction<R> after)
@Nonnull default <V> LByteFunction<V> then(@Nonnull LFunction<? super R,? extends V> after)
Combines two functions together in a order.
@Nonnull default LByteConsumer thenConsume(@Nonnull LConsumer<? super R> after)
Combines two functions together in a order.
@Nonnull default LByteFunction<R> before(@Nonnull LByteConsumer before)
@Nonnull default LByteUnaryOperator thenToByte(@Nonnull LToByteFunction<? super R> after)
Combines two functions together in a order.
@Nonnull default LByteToSrtFunction thenToSrt(@Nonnull LToSrtFunction<? super R> after)
Combines two functions together in a order.
@Nonnull default LByteToIntFunction thenToInt(@Nonnull LToIntFunction<? super R> after)
Combines two functions together in a order.
@Nonnull default LByteToLongFunction thenToLong(@Nonnull LToLongFunction<? super R> after)
Combines two functions together in a order.
@Nonnull default LByteToFltFunction thenToFlt(@Nonnull LToFltFunction<? super R> after)
Combines two functions together in a order.
@Nonnull default LByteToDblFunction thenToDbl(@Nonnull LToDblFunction<? super R> after)
Combines two functions together in a order.
@Nonnull default LByteToCharFunction thenToChar(@Nonnull LToCharFunction<? super R> after)
Combines two functions together in a order.
@Nonnull default LBytePredicate thenToBool(@Nonnull LPredicate<? super R> after)
Combines two functions together in a order.
@Nonnull default LByteFunction<R> nonNullable()
Converts to function that makes sure that the result is not null.
static <R> R produce(byte a)
Does nothing (LByteFunction) Function
default <C0> void forEach(IndexedRead<C0,aType.aByte> ia, C0 source, 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 <C0,I0> void iterate(SequentialRead<C0,I0,aType.aByte> sa, C0 source, 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.