@FunctionalInterface public interface LByteUnaryOperator extends MetaOperator, MetaInterface.NonThrowing, Codomain<aType.aByte>, Domain1<aType.aByte>
Non-throwing functional interface (lambda) LByteUnaryOperator for Java 8.
Type: operator
Domain (lvl: 1): byte a
Co-domain: byte
| Modifier and Type | Interface and Description |
|---|---|
static class |
LByteUnaryOperator.LByteUnaryOperatorSingle |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
default byte |
applyAsByte(byte a) |
default byte |
applyAsByte(byte a,
ExWF<RuntimeException> exF) |
default byte |
applyAsByte(byte a,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default byte |
applyAsByteThen(byte a,
LToByteFunction<Throwable> handler) |
byte |
applyAsByteX(byte a)
Implement this, but call applyAsByte(byte a)
|
static LByteUnaryOperator |
byteUnaryOp(LByteUnaryOperator lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
default <V> LToByteFunction<V> |
byteUnaryOpCompose(LToByteFunction<? super V> before)
Allows to manipulate the domain of the function.
|
static LByteUnaryOperator |
byteUnaryOpThrowing(ExF<Throwable> exF) |
static LByteUnaryOperator |
byteUnaryOpThrowing(String message,
ExMF<Throwable> exF) |
static byte |
call(byte a,
LByteUnaryOperator lambda) |
default LByteSupplier |
capture(byte a)
Captures arguments but delays the evaluation.
|
default LByteUnaryOperator |
compose(LByteUnaryOperator before)
Allows to manipulate the domain of the function.
|
static LByteUnaryOperator |
composed(LByteUnaryOperator before,
LByteUnaryOperator after) |
static <V> LToByteFunction<V> |
composed(LToByteFunction<? super V> before,
LByteUnaryOperator after) |
static LByteUnaryOperator |
constant(byte r)
Creates function that always returns the same value.
|
static LByteUnaryOperator |
failSafe(LByteUnaryOperator func,
LByteUnaryOperator failSafe) |
default byte |
failSafeApplyAsByte(byte a,
LByteUnaryOperator failSafe) |
static byte |
failSafeApplyAsByte(byte a,
LByteUnaryOperator func,
LByteUnaryOperator failSafe) |
default <C0> void |
forEach(IndexedRead<C0,aType.aByte> ia,
C0 source,
LByteConsumer 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,
byte a,
LByteUnaryOperator func)
From-To.
|
static void |
fromTo(int min_i,
int max_i,
byte a,
LByteUnaryOperator func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default LByteUnaryOperator |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default byte |
handlingApplyAsByte(byte a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static byte |
handlingApplyAsByte(byte a,
LByteUnaryOperator func,
HandlingInstructions<Throwable,RuntimeException> handling) |
static LByteUnaryOperator |
identity()
Returns a function that always returns its input argument.
|
default <C0,I0> void |
iterate(SequentialRead<C0,I0,aType.aByte> sa,
C0 source,
LByteConsumer consumer)
For each element (or tuple) from arguments, calls the function and passes the result to consumer.
|
default byte |
nestingApplyAsByte(byte a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default byte |
nonNullApplyAsByte(byte a)
Just to mirror the method: Ensures the result is not null
|
static byte |
produceByte(byte a)
Does nothing (LByteUnaryOperator) Operator
|
static LByteUnaryOperator |
recursive(LFunction<LByteUnaryOperator,LByteUnaryOperator> selfLambda) |
static LByteUnaryOperator |
safe()
Safe instance.
|
static LByteUnaryOperator |
safe(LByteUnaryOperator other)
Safe wrapping.
|
static LSupplier<LByteUnaryOperator> |
safeSupplier()
Safe instance supplier.
|
static LSupplier<LByteUnaryOperator> |
safeSupplier(LSupplier<LByteUnaryOperator> supplier)
Safe supplier.
|
default byte |
shovingApplyAsByte(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(LByteFunction<? extends V> after)
Combines two functions together in a order.
|
default LBytePredicate |
thenToBool(LBytePredicate after)
Combines two functions together in a order.
|
default LByteUnaryOperator |
thenToByte(LByteUnaryOperator after)
Combines two functions together in a order.
|
default LByteToCharFunction |
thenToChar(LByteToCharFunction after)
Combines two functions together in a order.
|
default LByteToDblFunction |
thenToDbl(LByteToDblFunction after)
Combines two functions together in a order.
|
default LByteToFltFunction |
thenToFlt(LByteToFltFunction after)
Combines two functions together in a order.
|
default LByteToIntFunction |
thenToInt(LByteToIntFunction after)
Combines two functions together in a order.
|
default LByteToLongFunction |
thenToLong(LByteToLongFunction after)
Combines two functions together in a order.
|
default LByteToSrtFunction |
thenToSrt(LByteToSrtFunction after)
Combines two functions together in a order.
|
static void |
times(int max_i,
byte a,
LByteUnaryOperator func)
From-To.
|
static byte |
tryApplyAsByte(byte a,
LByteUnaryOperator func) |
static byte |
tryApplyAsByte(byte a,
LByteUnaryOperator func,
ExWF<RuntimeException> exF) |
static byte |
tryApplyAsByte(byte a,
LByteUnaryOperator func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static byte |
tryApplyAsByteThen(byte a,
LByteUnaryOperator func,
LToByteFunction<Throwable> handler) |
default LByteUnaryOperator |
trying(ExWF<RuntimeException> exF) |
default LByteUnaryOperator |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LByteUnaryOperator |
tryingThen(LToByteFunction<Throwable> handler) |
default byte |
tupleApplyAsByte(LByteSingle args) |
isOperatorisFunctionformatTo, isAction, isConsumer, isPredicate, isSupplierisThrowingisThrowingstatic final String DESCRIPTION
default byte applyAsByte(byte a)
byte applyAsByteX(byte a)
throws Throwable
Implement this, but call applyAsByte(byte a)
Throwabledefault byte tupleApplyAsByte(LByteSingle args)
default byte handlingApplyAsByte(byte a,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LByteUnaryOperator handling(HandlingInstructions<Throwable,RuntimeException> handling)
default byte applyAsByte(byte a,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
default LByteUnaryOperator trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default byte applyAsByte(byte a,
@Nonnull
ExWF<RuntimeException> exF)
default LByteUnaryOperator trying(@Nonnull ExWF<RuntimeException> exF)
default byte applyAsByteThen(byte a,
@Nonnull
LToByteFunction<Throwable> handler)
default LByteUnaryOperator tryingThen(@Nonnull LToByteFunction<Throwable> handler)
default byte nestingApplyAsByte(byte a)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default byte shovingApplyAsByte(byte a)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static byte handlingApplyAsByte(byte a,
LByteUnaryOperator func,
HandlingInstructions<Throwable,RuntimeException> handling)
static byte tryApplyAsByte(byte a,
LByteUnaryOperator func)
static byte tryApplyAsByte(byte a,
LByteUnaryOperator func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static byte tryApplyAsByte(byte a,
LByteUnaryOperator func,
@Nonnull
ExWF<RuntimeException> exF)
static byte tryApplyAsByteThen(byte a,
LByteUnaryOperator func,
@Nonnull
LToByteFunction<Throwable> handler)
default byte failSafeApplyAsByte(byte a,
@Nonnull
LByteUnaryOperator failSafe)
static byte failSafeApplyAsByte(byte a,
LByteUnaryOperator func,
@Nonnull
LByteUnaryOperator failSafe)
static LByteUnaryOperator failSafe(LByteUnaryOperator func, @Nonnull LByteUnaryOperator failSafe)
default byte nonNullApplyAsByte(byte a)
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,
byte a,
LByteUnaryOperator func)
From-To. Intended to be used with non-capturing lambda.
static void fromTill(int min_i,
int max_i,
byte a,
LByteUnaryOperator func)
From-To. Intended to be used with non-capturing lambda.
static void times(int max_i,
byte a,
LByteUnaryOperator func)
From-To. Intended to be used with non-capturing lambda.
default LByteSupplier capture(byte a)
Captures arguments but delays the evaluation.
static LByteUnaryOperator constant(byte r)
Creates function that always returns the same value.
@Nonnull static LByteUnaryOperator byteUnaryOp(@Nonnull LByteUnaryOperator lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static LByteUnaryOperator recursive(@Nonnull LFunction<LByteUnaryOperator,LByteUnaryOperator> selfLambda)
@Nonnull static LByteUnaryOperator byteUnaryOpThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static LByteUnaryOperator byteUnaryOpThrowing(String message, @Nonnull ExMF<Throwable> exF)
static byte call(byte a,
@Nonnull
LByteUnaryOperator lambda)
@Nonnull static LByteUnaryOperator safe()
Safe instance. That always returns the same value (as produceByte).
@Nonnull static LSupplier<LByteUnaryOperator> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static LByteUnaryOperator safe(@Nullable LByteUnaryOperator other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static LSupplier<LByteUnaryOperator> safeSupplier(@Nullable LSupplier<LByteUnaryOperator> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default LByteUnaryOperator compose(@Nonnull LByteUnaryOperator before)
Allows to manipulate the domain of the function.
static LByteUnaryOperator composed(@Nonnull LByteUnaryOperator before, LByteUnaryOperator after)
@Nonnull default <V> LToByteFunction<V> byteUnaryOpCompose(@Nonnull LToByteFunction<? super V> before)
Allows to manipulate the domain of the function.
static <V> LToByteFunction<V> composed(@Nonnull LToByteFunction<? super V> before, LByteUnaryOperator after)
@Nonnull default <V> LByteFunction<V> then(@Nonnull LByteFunction<? extends V> after)
Combines two functions together in a order.
@Nonnull default LByteUnaryOperator thenToByte(@Nonnull LByteUnaryOperator after)
Combines two functions together in a order.
@Nonnull default LByteToSrtFunction thenToSrt(@Nonnull LByteToSrtFunction after)
Combines two functions together in a order.
@Nonnull default LByteToIntFunction thenToInt(@Nonnull LByteToIntFunction after)
Combines two functions together in a order.
@Nonnull default LByteToLongFunction thenToLong(@Nonnull LByteToLongFunction after)
Combines two functions together in a order.
@Nonnull default LByteToFltFunction thenToFlt(@Nonnull LByteToFltFunction after)
Combines two functions together in a order.
@Nonnull default LByteToDblFunction thenToDbl(@Nonnull LByteToDblFunction after)
Combines two functions together in a order.
@Nonnull default LByteToCharFunction thenToChar(@Nonnull LByteToCharFunction after)
Combines two functions together in a order.
@Nonnull default LBytePredicate thenToBool(@Nonnull LBytePredicate after)
Combines two functions together in a order.
@Nonnull static LByteUnaryOperator identity()
Returns a function that always returns its input argument.
static byte produceByte(byte a)
Does nothing (LByteUnaryOperator) Operator
default <C0> void forEach(IndexedRead<C0,aType.aByte> ia, C0 source, 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 <C0,I0> void iterate(SequentialRead<C0,I0,aType.aByte> sa, C0 source, 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.