@FunctionalInterface public interface LByteSupplier extends MetaSupplier, MetaInterface.NonThrowing, Codomain<aType.aByte>, Domain0
Non-throwing functional interface (lambda) LByteSupplier for Java 8.
Type: supplier
Domain (lvl: 0): none
Co-domain: byte
| Modifier and Type | Interface and Description |
|---|---|
static class |
LByteSupplier.LByteSupplierSingle |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
static LByteSupplier |
byteSup(LByteSupplier lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static LByteSupplier |
byteSupThrowing(ExF<Throwable> exF) |
static LByteSupplier |
byteSupThrowing(String message,
ExMF<Throwable> exF) |
static byte |
call(LByteSupplier lambda) |
static LByteSupplier |
failSafe(LByteSupplier func,
LByteSupplier failSafe) |
default byte |
failSafeGetAsByte(LByteSupplier failSafe) |
static byte |
failSafeGetAsByte(LByteSupplier func,
LByteSupplier failSafe) |
static void |
fromTill(int min_i,
int max_i,
LByteSupplier func)
From-To.
|
static void |
fromTo(int min_i,
int max_i,
LByteSupplier func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default byte |
getAsByte() |
default byte |
getAsByte(ExWF<RuntimeException> exF) |
default byte |
getAsByte(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default byte |
getAsByteThen(LToByteFunction<Throwable> handler) |
byte |
getAsByteX()
Implement this, but call getAsByte()
|
default LByteSupplier |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default byte |
handlingGetAsByte(HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static byte |
handlingGetAsByte(LByteSupplier func,
HandlingInstructions<Throwable,RuntimeException> handling) |
default byte |
nestingGetAsByte()
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
default byte |
nonNullGetAsByte()
Just to mirror the method: Ensures the result is not null
|
static LByteSupplier |
of(byte r)
Creates function that always returns the same value.
|
static byte |
produceByte()
Does nothing (LByteSupplier) Supplier
|
static LByteSupplier |
recursive(LFunction<LByteSupplier,LByteSupplier> selfLambda) |
static LByteSupplier |
safe()
Safe instance.
|
static LByteSupplier |
safe(LByteSupplier other)
Safe wrapping.
|
static LSupplier<LByteSupplier> |
safeSupplier()
Safe instance supplier.
|
static LSupplier<LByteSupplier> |
safeSupplier(LSupplier<LByteSupplier> supplier)
Safe supplier.
|
default byte |
shovingGetAsByte()
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
static void |
times(int max_i,
LByteSupplier func)
From-To.
|
default LBoolSupplier |
toBoolSup(LBytePredicate after)
Combines two functions together in a order.
|
default LByteSupplier |
toByteSup(LByteUnaryOperator after)
Combines two functions together in a order.
|
default LCharSupplier |
toCharSup(LByteToCharFunction after)
Combines two functions together in a order.
|
default LDblSupplier |
toDblSup(LByteToDblFunction after)
Combines two functions together in a order.
|
default LFltSupplier |
toFltSup(LByteToFltFunction after)
Combines two functions together in a order.
|
default LIntSupplier |
toIntSup(LByteToIntFunction after)
Combines two functions together in a order.
|
default LLongSupplier |
toLongSup(LByteToLongFunction after)
Combines two functions together in a order.
|
default LSrtSupplier |
toSrtSup(LByteToSrtFunction after)
Combines two functions together in a order.
|
default <V> LSupplier<V> |
toSup(LByteFunction<? extends V> after)
Combines two functions together in a order.
|
static byte |
tryGetAsByte(LByteSupplier func) |
static byte |
tryGetAsByte(LByteSupplier func,
ExWF<RuntimeException> exF) |
static byte |
tryGetAsByte(LByteSupplier func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static byte |
tryGetAsByteThen(LByteSupplier func,
LToByteFunction<Throwable> handler) |
default LByteSupplier |
trying(ExWF<RuntimeException> exF) |
default LByteSupplier |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LByteSupplier |
tryingThen(LToByteFunction<Throwable> handler) |
default byte |
tupleGetAsByte(LTuple.Void args) |
isSupplierformatTo, isAction, isConsumer, isFunction, isOperator, isPredicateisThrowingstatic final String DESCRIPTION
default byte getAsByte()
byte getAsByteX()
throws Throwable
Implement this, but call getAsByte()
Throwabledefault byte tupleGetAsByte(LTuple.Void args)
default byte handlingGetAsByte(HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LByteSupplier handling(HandlingInstructions<Throwable,RuntimeException> handling)
default byte getAsByte(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default LByteSupplier trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default byte getAsByte(@Nonnull ExWF<RuntimeException> exF)
default LByteSupplier trying(@Nonnull ExWF<RuntimeException> exF)
default byte getAsByteThen(@Nonnull LToByteFunction<Throwable> handler)
default LByteSupplier tryingThen(@Nonnull LToByteFunction<Throwable> handler)
default byte nestingGetAsByte()
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default byte shovingGetAsByte()
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static byte handlingGetAsByte(LByteSupplier func, HandlingInstructions<Throwable,RuntimeException> handling)
static byte tryGetAsByte(LByteSupplier func)
static byte tryGetAsByte(LByteSupplier func, @Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
static byte tryGetAsByte(LByteSupplier func, @Nonnull ExWF<RuntimeException> exF)
static byte tryGetAsByteThen(LByteSupplier func, @Nonnull LToByteFunction<Throwable> handler)
default byte failSafeGetAsByte(@Nonnull LByteSupplier failSafe)
static byte failSafeGetAsByte(LByteSupplier func, @Nonnull LByteSupplier failSafe)
static LByteSupplier failSafe(LByteSupplier func, @Nonnull LByteSupplier failSafe)
default byte nonNullGetAsByte()
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,
LByteSupplier func)
From-To. Intended to be used with non-capturing lambda.
static void fromTill(int min_i,
int max_i,
LByteSupplier func)
From-To. Intended to be used with non-capturing lambda.
static void times(int max_i,
LByteSupplier func)
From-To. Intended to be used with non-capturing lambda.
static LByteSupplier of(byte r)
Creates function that always returns the same value.
@Nonnull static LByteSupplier byteSup(@Nonnull LByteSupplier lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
@Nonnull static LByteSupplier recursive(@Nonnull LFunction<LByteSupplier,LByteSupplier> selfLambda)
@Nonnull static LByteSupplier byteSupThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static LByteSupplier byteSupThrowing(String message, @Nonnull ExMF<Throwable> exF)
static byte call(@Nonnull LByteSupplier lambda)
@Nonnull static LByteSupplier safe()
Safe instance. That always returns the same value (as produceByte).
@Nonnull static LSupplier<LByteSupplier> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static LByteSupplier safe(@Nullable LByteSupplier other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static LSupplier<LByteSupplier> safeSupplier(@Nullable LSupplier<LByteSupplier> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default <V> LSupplier<V> toSup(@Nonnull LByteFunction<? extends V> after)
Combines two functions together in a order.
@Nonnull default LByteSupplier toByteSup(@Nonnull LByteUnaryOperator after)
Combines two functions together in a order.
@Nonnull default LSrtSupplier toSrtSup(@Nonnull LByteToSrtFunction after)
Combines two functions together in a order.
@Nonnull default LIntSupplier toIntSup(@Nonnull LByteToIntFunction after)
Combines two functions together in a order.
@Nonnull default LLongSupplier toLongSup(@Nonnull LByteToLongFunction after)
Combines two functions together in a order.
@Nonnull default LFltSupplier toFltSup(@Nonnull LByteToFltFunction after)
Combines two functions together in a order.
@Nonnull default LDblSupplier toDblSup(@Nonnull LByteToDblFunction after)
Combines two functions together in a order.
@Nonnull default LCharSupplier toCharSup(@Nonnull LByteToCharFunction after)
Combines two functions together in a order.
@Nonnull default LBoolSupplier toBoolSup(@Nonnull LBytePredicate after)
Combines two functions together in a order.
static byte produceByte()
Does nothing (LByteSupplier) Supplier
Copyright © 2019. All rights reserved.