| Package | Description |
|---|---|
| eu.lunisolar.magma.func.consumer.primitives.obj | |
| eu.lunisolar.magma.func.function.from | |
| eu.lunisolar.magma.func.predicate |
| Modifier and Type | Interface and Description |
|---|---|
static interface |
LObjSrtConsumer.LSrtObjCons<T>
Permutation of LObjSrtConsumer for method references.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
LObjSrtConsumer.LObjSrtConsumerSingle<T> |
| Modifier and Type | Method and Description |
|---|---|
static <T> LObjSrtConsumer<T> |
LObjSrtConsumer.accept1st(LConsumer<T> func)
Captures single parameter function into this interface where only 1st parameter will be used.
|
static <T> LObjSrtConsumer<T> |
LObjSrtConsumer.accept2nd(LSrtConsumer func)
Captures single parameter function into this interface where only 2nd parameter will be used.
|
default LObjSrtConsumer<T> |
LObjSrtConsumer.andThen(LObjSrtConsumer<? super T> after)
Combines two LObjSrtConsumer
|
default <V2> LObjSrtConsumer<V2> |
LObjSrtConsumer.cast()
Cast that replace generics.
|
static <V2,T> LObjSrtConsumer<V2> |
LObjSrtConsumer.cast(LObjSrtConsumer<T> function)
Cast that replace generics.
|
default <V1> LObjSrtConsumer<V1> |
LObjSrtConsumer.compose(LFunction<? super V1,? extends T> before1,
LSrtUnaryOperator before2)
Allows to manipulate the domain of the function.
|
static <V1,T> LObjSrtConsumer<V1> |
LObjSrtConsumer.composed(LFunction<? super V1,? extends T> before1,
LSrtUnaryOperator before2,
LObjSrtConsumer<T> after) |
static <T> LObjSrtConsumer<T> |
LObjSrtConsumer.failSafe(LObjSrtConsumer<T> func,
LObjSrtConsumer<T> failSafe) |
default LObjSrtConsumer<T> |
LObjSrtConsumer.handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default LObjSrtConsumer<T2> |
LBiObjSrtConsumer.lShrink(LObjSrtFunction<T2,T1> left) |
default LObjSrtConsumer<T2> |
LBiObjSrtConsumer.lShrinkc(T1 a1) |
static <T2,T1> LObjSrtConsumer<T2> |
LBiObjSrtConsumer.lShrinked(LObjSrtFunction<T2,T1> left,
LBiObjSrtConsumer<T1,T2> func) |
static <T2,T1> LObjSrtConsumer<T2> |
LBiObjSrtConsumer.lShrinkedc(T1 a1,
LBiObjSrtConsumer<T1,T2> func) |
static <T> LObjSrtConsumer<T> |
LObjSrtConsumer.objSrtCons(LObjSrtConsumer<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static <T> LObjSrtConsumer<T> |
LObjSrtConsumer.objSrtConsThrowing(ExF<Throwable> exF) |
static <T> LObjSrtConsumer<T> |
LObjSrtConsumer.objSrtConsThrowing(String message,
ExMF<Throwable> exF) |
static <T> LObjSrtConsumer<T> |
LObjSrtConsumer.recursive(LFunction<LObjSrtConsumer<T>,LObjSrtConsumer<T>> selfLambda) |
static <T> LObjSrtConsumer<T> |
LObjSrtConsumer.safe()
Safe instance.
|
static <T> LObjSrtConsumer<T> |
LObjSrtConsumer.safe(LObjSrtConsumer<T> other)
Safe wrapping.
|
default LObjSrtConsumer<T> |
LObjSrtConsumer.trying(ExWF<RuntimeException> exF) |
default LObjSrtConsumer<T> |
LObjSrtConsumer.trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LObjSrtConsumer<T> |
LObjSrtConsumer.tryingThen(LConsumer<Throwable> handler) |
static <T> LObjSrtConsumer<T> |
LObjSrtConsumer.uncurry(LFunction<T,LSrtConsumer> func) |
default LObjSrtConsumer |
LObjSrtConsumer.untyped()
Cast that removes generics.
|
LObjSrtConsumer<T> |
LObjSrtConsumer.LObjSrtConsumerSingle.value() |
| Modifier and Type | Method and Description |
|---|---|
static <T> LSupplier<LObjSrtConsumer<T>> |
LObjSrtConsumer.safeSupplier()
Safe instance supplier.
|
static <T> LSupplier<LObjSrtConsumer<T>> |
LObjSrtConsumer.safeSupplier(LSupplier<LObjSrtConsumer<T>> supplier)
Safe supplier.
|
| Modifier and Type | Method and Description |
|---|---|
default LObjSrtConsumer<T> |
LObjSrtConsumer.andThen(LObjSrtConsumer<? super T> after)
Combines two LObjSrtConsumer
|
static <T> void |
LObjSrtConsumer.call(T a1,
short a2,
LObjSrtConsumer<T> lambda) |
static <V2,T> LObjSrtConsumer<V2> |
LObjSrtConsumer.cast(LObjSrtConsumer<T> function)
Cast that replace generics.
|
static <V1,T> LObjSrtConsumer<V1> |
LObjSrtConsumer.composed(LFunction<? super V1,? extends T> before1,
LSrtUnaryOperator before2,
LObjSrtConsumer<T> after) |
static <V1,V2,T> LBiConsumer<V1,V2> |
LObjSrtConsumer.composed(LFunction<? super V1,? extends T> before1,
LToSrtFunction<? super V2> before2,
LObjSrtConsumer<T> after) |
static <T> LObjSrtConsumer<T> |
LObjSrtConsumer.failSafe(LObjSrtConsumer<T> func,
LObjSrtConsumer<T> failSafe) |
static <T> LObjSrtConsumer<T> |
LObjSrtConsumer.failSafe(LObjSrtConsumer<T> func,
LObjSrtConsumer<T> failSafe) |
default void |
LObjSrtConsumer.failSafeAccept(T a1,
short a2,
LObjSrtConsumer<T> failSafe) |
static <T> void |
LObjSrtConsumer.failSafeAccept(T a1,
short a2,
LObjSrtConsumer<T> func,
LObjSrtConsumer<T> failSafe) |
static <T> void |
LObjSrtConsumer.failSafeAccept(T a1,
short a2,
LObjSrtConsumer<T> func,
LObjSrtConsumer<T> failSafe) |
static <C1,C2,T> int |
LObjSrtConsumer.forEach(IndexedRead<C1,aType.a<T>> ia1,
C1 source1,
IndexedRead<C2,aType.aShort> ia2,
C2 source2,
LObjSrtConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer.
|
static <T> void |
LObjSrtConsumer.fromTill(int min_i,
int max_i,
T a1,
short a2,
LObjSrtConsumer<T> func)
From-To.
|
static <T> void |
LObjSrtConsumer.fromTo(int min_i,
int max_i,
T a1,
short a2,
LObjSrtConsumer<T> func)
From-To.
|
static <T> void |
LObjSrtConsumer.handlingAccept(T a1,
short a2,
LObjSrtConsumer<T> func,
HandlingInstructions<Throwable,RuntimeException> handling) |
static <C1,C2,I2,T> |
LObjSrtConsumer.iterate(IndexedRead<C1,aType.a<T>> ia1,
C1 source1,
SequentialRead<C2,I2,aType.aShort> sa2,
C2 source2,
LObjSrtConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer.
|
static <C1,I1,C2,T> |
LObjSrtConsumer.iterate(SequentialRead<C1,I1,aType.a<T>> sa1,
C1 source1,
IndexedRead<C2,aType.aShort> ia2,
C2 source2,
LObjSrtConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer.
|
static <C1,I1,C2,I2,T> |
LObjSrtConsumer.iterate(SequentialRead<C1,I1,aType.a<T>> sa1,
C1 source1,
SequentialRead<C2,I2,aType.aShort> sa2,
C2 source2,
LObjSrtConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer.
|
static <T> LSrtConsumer |
LObjSrtConsumer.lShrinked(LSrtFunction<T> left,
LObjSrtConsumer<T> func) |
static <T> LSrtConsumer |
LObjSrtConsumer.lShrinkedc(T a1,
LObjSrtConsumer<T> func) |
static <T> LObjSrtConsumer<T> |
LObjSrtConsumer.objSrtCons(LObjSrtConsumer<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static <T> LConsumer<T> |
LObjSrtConsumer.rShrinked(LToSrtFunction<T> right,
LObjSrtConsumer<T> func) |
static <T> LConsumer<T> |
LObjSrtConsumer.rShrinkedc(short a2,
LObjSrtConsumer<T> func) |
static <T> LObjSrtConsumer<T> |
LObjSrtConsumer.safe(LObjSrtConsumer<T> other)
Safe wrapping.
|
static <T,C2> T |
LObjSrtConsumer.targetedForEach(T a1,
IndexedRead<C2,aType.aShort> ia2,
C2 source2,
LObjSrtConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer.
|
static <T,C2,I2> T |
LObjSrtConsumer.targetedIterate(T a1,
SequentialRead<C2,I2,aType.aShort> sa2,
C2 source2,
LObjSrtConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer.
|
static <T> void |
LObjSrtConsumer.times(int max_i,
T a1,
short a2,
LObjSrtConsumer<T> func)
From-To.
|
static <T> void |
LObjSrtConsumer.tryAccept(T a1,
short a2,
LObjSrtConsumer<T> func) |
static <T> void |
LObjSrtConsumer.tryAccept(T a1,
short a2,
LObjSrtConsumer<T> func,
ExWF<RuntimeException> exF) |
static <T> void |
LObjSrtConsumer.tryAccept(T a1,
short a2,
LObjSrtConsumer<T> func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static <T> void |
LObjSrtConsumer.tryAcceptThen(T a1,
short a2,
LObjSrtConsumer<T> func,
LConsumer<Throwable> handler) |
| Modifier and Type | Method and Description |
|---|---|
static <T> LObjSrtConsumer<T> |
LObjSrtConsumer.recursive(LFunction<LObjSrtConsumer<T>,LObjSrtConsumer<T>> selfLambda) |
static <T> LObjSrtConsumer<T> |
LObjSrtConsumer.recursive(LFunction<LObjSrtConsumer<T>,LObjSrtConsumer<T>> selfLambda) |
static <T> LSupplier<LObjSrtConsumer<T>> |
LObjSrtConsumer.safeSupplier(LSupplier<LObjSrtConsumer<T>> supplier)
Safe supplier.
|
| Modifier and Type | Method and Description |
|---|---|
default LObjSrtConsumer<T> |
LObjSrtFunction.thenConsume(LConsumer<? super R> after)
Combines two functions together in a order.
|
| Modifier and Type | Method and Description |
|---|---|
default LObjSrtFunction<T,R> |
LObjSrtFunction.before(LObjSrtConsumer<? super T> before) |
| Modifier and Type | Method and Description |
|---|---|
default boolean |
LObjSrtPredicate.doIf(T a1,
short a2,
LObjSrtConsumer<? super T> consumer) |
static <T> boolean |
LObjSrtPredicate.doIf(T a1,
short a2,
LObjSrtPredicate<T> predicate,
LObjSrtConsumer<? super T> consumer) |
default <V> boolean |
LSrtPredicate.doIf(V a1,
short a2,
LObjSrtConsumer<V> consumer) |
default <C1,C2> void |
LObjSrtPredicate.filterForEach(IndexedRead<C1,aType.a<T>> ia1,
C1 source1,
IndexedRead<C2,aType.aShort> ia2,
C2 source2,
LObjSrtConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer if predicate test passes.
|
default <C1,C2,I2> void |
LObjSrtPredicate.filterIterate(IndexedRead<C1,aType.a<T>> ia1,
C1 source1,
SequentialRead<C2,I2,aType.aShort> sa2,
C2 source2,
LObjSrtConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer if predicate test passes.
|
default <C1,I1,C2> void |
LObjSrtPredicate.filterIterate(SequentialRead<C1,I1,aType.a<T>> sa1,
C1 source1,
IndexedRead<C2,aType.aShort> ia2,
C2 source2,
LObjSrtConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer if predicate test passes.
|
default <C1,I1,C2,I2> |
LObjSrtPredicate.filterIterate(SequentialRead<C1,I1,aType.a<T>> sa1,
C1 source1,
SequentialRead<C2,I2,aType.aShort> sa2,
C2 source2,
LObjSrtConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer if predicate test passes.
|
Copyright © 2019. All rights reserved.