@FunctionalInterface public interface LObjIntConsumer<T> extends java.util.function.ObjIntConsumer<T>, MetaConsumer, MetaInterface.NonThrowing, TeConsumer<T,aType.aInt>, Codomain<aType.aVoid>, Domain2<aType.a<T>,aType.aInt>
Non-throwing functional interface (lambda) LObjIntConsumer for Java 8.
Type: consumer
Domain (lvl: 2): T a1,int a2
Co-domain: none
Special case of consumer that corresponds to expressions like (list, element) -> List::add
| Modifier and Type | Interface and Description |
|---|---|
static interface |
LObjIntConsumer.LIntObjCons<T>
Permutation of LObjIntConsumer for method references.
|
static class |
LObjIntConsumer.LObjIntConsumerSingle<T> |
MetaInterface.NonThrowing, MetaInterface.Throwing<X>| Modifier and Type | Field and Description |
|---|---|
static String |
DESCRIPTION |
| Modifier and Type | Method and Description |
|---|---|
default void |
accept(T a1,
int a2) |
default void |
accept(T a1,
int a2,
ExWF<RuntimeException> exF) |
default void |
accept(T a1,
int a2,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static <T> LObjIntConsumer<T> |
accept1st(LConsumer<T> func)
Captures single parameter function into this interface where only 1st parameter will be used.
|
static <T> LObjIntConsumer<T> |
accept2nd(LIntConsumer func)
Captures single parameter function into this interface where only 2nd parameter will be used.
|
default void |
acceptThen(T a1,
int a2,
LConsumer<Throwable> handler) |
void |
acceptX(T a1,
int a2)
Implement this, but call accept(T a1,int a2)
|
default LObjIntConsumer<T> |
andThen(LObjIntConsumer<? super T> after)
Combines two LObjIntConsumer
|
static <T> void |
call(T a1,
int a2,
LObjIntConsumer<T> lambda) |
default LAction |
capture(T a1,
int a2)
Captures arguments but delays the evaluation.
|
default <V2> LObjIntConsumer<V2> |
cast()
Cast that replace generics.
|
static <V2,T> LObjIntConsumer<V2> |
cast(LObjIntConsumer<T> function)
Cast that replace generics.
|
default <V1> LObjIntConsumer<V1> |
compose(LFunction<? super V1,? extends T> before1,
LIntUnaryOperator before2)
Allows to manipulate the domain of the function.
|
static <V1,T> LObjIntConsumer<V1> |
composed(LFunction<? super V1,? extends T> before1,
LIntUnaryOperator before2,
LObjIntConsumer<T> after) |
static <V1,V2,T> LBiConsumer<V1,V2> |
composed(LFunction<? super V1,? extends T> before1,
LToIntFunction<? super V2> before2,
LObjIntConsumer<T> after) |
static <T> void |
doNothing(int a2,
T a1)
Does nothing (LObjIntConsumer.LIntObjCons)
|
static <T> void |
doNothing(T a1,
int a2)
Does nothing (LObjIntConsumer)
|
static <T> LObjIntConsumer<T> |
failSafe(LObjIntConsumer<T> func,
LObjIntConsumer<T> failSafe) |
default void |
failSafeAccept(T a1,
int a2,
LObjIntConsumer<T> failSafe) |
static <T> void |
failSafeAccept(T a1,
int a2,
LObjIntConsumer<T> func,
LObjIntConsumer<T> failSafe) |
static <C1,C2,T> int |
forEach(IndexedRead<C1,aType.a<T>> ia1,
C1 source1,
IndexedRead<C2,aType.aInt> ia2,
C2 source2,
LObjIntConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer.
|
static <T> void |
fromTill(int min_a2,
int max_a2,
T a1,
LObjIntConsumer<T> func)
From-To.
|
static <T> void |
fromTo(int min_a2,
int max_a2,
T a1,
LObjIntConsumer<T> func)
From-To.
|
default String |
functionalInterfaceDescription()
Returns description of the functional interface.
|
default <C2> T |
genericForEach(T a1,
IndexedRead<C2,aType.aInt> ia2,
C2 source2)
ITERATION: TE_CONSUMER_GEN_IA: FOR, [SourcePurpose{arg=T a1, type=CONST}, SourcePurpose{arg=int a2, type=IA}]
|
default <C2,I2> T |
genericIterate(T a1,
SequentialRead<C2,I2,aType.aInt> sa2,
C2 source2)
ITERATION: TE_CONSUMER_GEN_SA: WHILE, [SourcePurpose{arg=T a1, type=CONST}, SourcePurpose{arg=int a2, type=SA}]
|
default LObjIntConsumer<T> |
handling(HandlingInstructions<Throwable,RuntimeException> handling) |
default void |
handlingAccept(T a1,
int a2,
HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
|
static <T> void |
handlingAccept(T a1,
int a2,
LObjIntConsumer<T> func,
HandlingInstructions<Throwable,RuntimeException> handling) |
static <C1,T> int |
indexedForEach(IndexedRead<C1,aType.a<T>> ia1,
C1 source1,
LObjIntConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer (with index).
|
static <C1,I1,T> int |
indexedIterate(SequentialRead<C1,I1,aType.a<T>> sa1,
C1 source1,
LObjIntConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer (with index).
|
static <T> LObjIntConsumer.LIntObjCons<T> |
intObjCons(LObjIntConsumer.LIntObjCons<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
|
static <C1,C2,I2,T> |
iterate(IndexedRead<C1,aType.a<T>> ia1,
C1 source1,
SequentialRead<C2,I2,aType.aInt> sa2,
C2 source2,
LObjIntConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer.
|
static <C1,I1,C2,T> |
iterate(SequentialRead<C1,I1,aType.a<T>> sa1,
C1 source1,
IndexedRead<C2,aType.aInt> ia2,
C2 source2,
LObjIntConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer.
|
static <C1,I1,C2,I2,T> |
iterate(SequentialRead<C1,I1,aType.a<T>> sa1,
C1 source1,
SequentialRead<C2,I2,aType.aInt> sa2,
C2 source2,
LObjIntConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer.
|
default LIntConsumer |
lShrink(LIntFunction<T> left) |
default LIntConsumer |
lShrinkc(T a1) |
static <T> LIntConsumer |
lShrinked(LIntFunction<T> left,
LObjIntConsumer<T> func) |
static <T> LIntConsumer |
lShrinkedc(T a1,
LObjIntConsumer<T> func) |
default void |
nestingAccept(T a1,
int a2)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
|
static <T> LObjIntConsumer<T> |
objIntCons(LObjIntConsumer<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> LBiConsumer<V1,V2> |
objIntConsCompose(LFunction<? super V1,? extends T> before1,
LToIntFunction<? super V2> before2)
Allows to manipulate the domain of the function.
|
static <T> LObjIntConsumer<T> |
objIntConsThrowing(ExF<Throwable> exF) |
static <T> LObjIntConsumer<T> |
objIntConsThrowing(String message,
ExMF<Throwable> exF) |
static <T> LObjIntConsumer<T> |
recursive(LFunction<LObjIntConsumer<T>,LObjIntConsumer<T>> selfLambda) |
default LConsumer<T> |
rShrink(LToIntFunction<T> right) |
default LConsumer<T> |
rShrinkc(int a2) |
static <T> LConsumer<T> |
rShrinked(LToIntFunction<T> right,
LObjIntConsumer<T> func) |
static <T> LConsumer<T> |
rShrinkedc(int a2,
LObjIntConsumer<T> func) |
static <T> LObjIntConsumer<T> |
safe()
Safe instance.
|
static <T> LObjIntConsumer<T> |
safe(LObjIntConsumer<T> other)
Safe wrapping.
|
static <T> LSupplier<LObjIntConsumer<T>> |
safeSupplier()
Safe instance supplier.
|
static <T> LSupplier<LObjIntConsumer<T>> |
safeSupplier(LSupplier<LObjIntConsumer<T>> supplier)
Safe supplier.
|
default void |
shovingAccept(T a1,
int a2)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
|
static <T,C2> T |
targetedForEach(T a1,
IndexedRead<C2,aType.aInt> ia2,
C2 source2,
LObjIntConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer.
|
static <T,C2,I2> T |
targetedIterate(T a1,
SequentialRead<C2,I2,aType.aInt> sa2,
C2 source2,
LObjIntConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer.
|
static <T> void |
times(int max_a2,
T a1,
LObjIntConsumer<T> func)
From-To.
|
static <T> void |
tryAccept(T a1,
int a2,
LObjIntConsumer<T> func) |
static <T> void |
tryAccept(T a1,
int a2,
LObjIntConsumer<T> func,
ExWF<RuntimeException> exF) |
static <T> void |
tryAccept(T a1,
int a2,
LObjIntConsumer<T> func,
ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
static <T> void |
tryAcceptThen(T a1,
int a2,
LObjIntConsumer<T> func,
LConsumer<Throwable> handler) |
default LObjIntConsumer<T> |
trying(ExWF<RuntimeException> exF) |
default LObjIntConsumer<T> |
trying(ExWMF<RuntimeException> exF,
String newMessage,
Object... messageParams) |
default LObjIntConsumer<T> |
tryingThen(LConsumer<Throwable> handler) |
default LTuple.Void |
tupleAccept(LObjIntPair<T> args) |
static <T> LObjIntConsumer<T> |
uncurry(LFunction<T,LIntConsumer> func) |
default LObjIntConsumer |
untyped()
Cast that removes generics.
|
static <T> LObjIntConsumer<T> |
wrap(java.util.function.ObjIntConsumer<T> other)
Wraps JRE instance.
|
isThrowingisConsumerformatTo, isAction, isFunction, isOperator, isPredicate, isSupplierstatic final String DESCRIPTION
default void accept(T a1, int a2)
accept in interface java.util.function.ObjIntConsumer<T>void acceptX(T a1, int a2) throws Throwable
Implement this, but call accept(T a1,int a2)
Throwabledefault LTuple.Void tupleAccept(LObjIntPair<T> args)
default void handlingAccept(T a1, int a2, HandlingInstructions<Throwable,RuntimeException> handling)
Function call that handles exceptions according to the instructions.
default LObjIntConsumer<T> handling(HandlingInstructions<Throwable,RuntimeException> handling)
default void accept(T a1, int a2, @Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default LObjIntConsumer<T> trying(@Nonnull ExWMF<RuntimeException> exF, @Nonnull String newMessage, @Nullable Object... messageParams)
default void accept(T a1, int a2, @Nonnull ExWF<RuntimeException> exF)
default LObjIntConsumer<T> trying(@Nonnull ExWF<RuntimeException> exF)
default LObjIntConsumer<T> tryingThen(@Nonnull LConsumer<Throwable> handler)
default void nestingAccept(T a1, int a2)
Function call that handles exceptions by always nesting checked exceptions and propagating the others as is.
default void shovingAccept(T a1, int a2)
Function call that handles exceptions by always propagating them as is, even when they are undeclared checked ones.
static <T> void handlingAccept(T a1,
int a2,
LObjIntConsumer<T> func,
HandlingInstructions<Throwable,RuntimeException> handling)
static <T> void tryAccept(T a1,
int a2,
LObjIntConsumer<T> func)
static <T> void tryAccept(T a1,
int a2,
LObjIntConsumer<T> func,
@Nonnull
ExWMF<RuntimeException> exF,
@Nonnull
String newMessage,
@Nullable
Object... messageParams)
static <T> void tryAccept(T a1,
int a2,
LObjIntConsumer<T> func,
@Nonnull
ExWF<RuntimeException> exF)
static <T> void tryAcceptThen(T a1,
int a2,
LObjIntConsumer<T> func,
@Nonnull
LConsumer<Throwable> handler)
default void failSafeAccept(T a1, int a2, @Nonnull LObjIntConsumer<T> failSafe)
static <T> void failSafeAccept(T a1,
int a2,
LObjIntConsumer<T> func,
@Nonnull
LObjIntConsumer<T> failSafe)
static <T> LObjIntConsumer<T> failSafe(LObjIntConsumer<T> func, @Nonnull LObjIntConsumer<T> failSafe)
@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,
LObjIntConsumer<T> func)
From-To. Intended to be used with non-capturing lambda.
static <T> void fromTill(int min_a2,
int max_a2,
T a1,
LObjIntConsumer<T> func)
From-To. Intended to be used with non-capturing lambda.
static <T> void times(int max_a2,
T a1,
LObjIntConsumer<T> func)
From-To. Intended to be used with non-capturing lambda.
default LIntConsumer lShrink(LIntFunction<T> left)
default LIntConsumer lShrinkc(T a1)
static <T> LIntConsumer lShrinked(LIntFunction<T> left, LObjIntConsumer<T> func)
static <T> LIntConsumer lShrinkedc(T a1, LObjIntConsumer<T> func)
default LConsumer<T> rShrink(LToIntFunction<T> right)
static <T> LConsumer<T> rShrinked(LToIntFunction<T> right, LObjIntConsumer<T> func)
static <T> LConsumer<T> rShrinkedc(int a2, LObjIntConsumer<T> func)
static <T> LObjIntConsumer<T> uncurry(LFunction<T,LIntConsumer> func)
default LObjIntConsumer untyped()
Cast that removes generics.
default <V2> LObjIntConsumer<V2> cast()
Cast that replace generics.
static <V2,T> LObjIntConsumer<V2> cast(LObjIntConsumer<T> function)
Cast that replace generics.
@Nonnull static <T> LObjIntConsumer<T> accept1st(@Nonnull LConsumer<T> func)
Captures single parameter function into this interface where only 1st parameter will be used.
@Nonnull static <T> LObjIntConsumer<T> accept2nd(@Nonnull LIntConsumer func)
Captures single parameter function into this interface where only 2nd parameter will be used.
@Nonnull static <T> LObjIntConsumer<T> objIntCons(@Nonnull LObjIntConsumer<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> LObjIntConsumer<T> recursive(@Nonnull LFunction<LObjIntConsumer<T>,LObjIntConsumer<T>> selfLambda)
@Nonnull static <T> LObjIntConsumer<T> objIntConsThrowing(@Nonnull ExF<Throwable> exF)
@Nonnull static <T> LObjIntConsumer<T> objIntConsThrowing(String message, @Nonnull ExMF<Throwable> exF)
@Nonnull static <T> LObjIntConsumer.LIntObjCons<T> intObjCons(@Nonnull LObjIntConsumer.LIntObjCons<T> lambda)
Convenient method in case lambda expression is ambiguous for the compiler (that might happen for overloaded methods accepting different interfaces).
static <T> void call(T a1,
int a2,
@Nonnull
LObjIntConsumer<T> lambda)
@Nonnull static <T> LObjIntConsumer<T> wrap(java.util.function.ObjIntConsumer<T> other)
Wraps JRE instance.
@Nonnull static <T> LObjIntConsumer<T> safe()
Safe instance.
@Nonnull static <T> LSupplier<LObjIntConsumer<T>> safeSupplier()
Safe instance supplier. Returns supplier of safe() instance.
@Nonnull static <T> LObjIntConsumer<T> safe(@Nullable LObjIntConsumer<T> other)
Safe wrapping. Either argument function is returned (if it is not null) or safe() instance.
@Nonnull static <T> LSupplier<LObjIntConsumer<T>> safeSupplier(@Nullable LSupplier<LObjIntConsumer<T>> supplier)
Safe supplier. Either argument supplier is returned (if it is not null) or supplier of safe() instance.
@Nonnull default <V1> LObjIntConsumer<V1> compose(@Nonnull LFunction<? super V1,? extends T> before1, @Nonnull LIntUnaryOperator before2)
Allows to manipulate the domain of the function.
static <V1,T> LObjIntConsumer<V1> composed(@Nonnull LFunction<? super V1,? extends T> before1, @Nonnull LIntUnaryOperator before2, LObjIntConsumer<T> after)
@Nonnull default <V1,V2> LBiConsumer<V1,V2> objIntConsCompose(@Nonnull LFunction<? super V1,? extends T> before1, @Nonnull LToIntFunction<? super V2> before2)
Allows to manipulate the domain of the function.
static <V1,V2,T> LBiConsumer<V1,V2> composed(@Nonnull LFunction<? super V1,? extends T> before1, @Nonnull LToIntFunction<? super V2> before2, LObjIntConsumer<T> after)
@Nonnull default LObjIntConsumer<T> andThen(@Nonnull LObjIntConsumer<? super T> after)
Combines two LObjIntConsumer
static <T> void doNothing(T a1,
int a2)
Does nothing (LObjIntConsumer)
static <T> void doNothing(int a2,
T a1)
Does nothing (LObjIntConsumer.LIntObjCons)
static <C1,C2,T> int forEach(IndexedRead<C1,aType.a<T>> ia1, C1 source1, IndexedRead<C2,aType.aInt> ia2, C2 source2, LObjIntConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
static <C1,I1,C2,T> int iterate(SequentialRead<C1,I1,aType.a<T>> sa1, C1 source1, IndexedRead<C2,aType.aInt> ia2, C2 source2, LObjIntConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
static <C1,C2,I2,T> int iterate(IndexedRead<C1,aType.a<T>> ia1, C1 source1, SequentialRead<C2,I2,aType.aInt> sa2, C2 source2, LObjIntConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer. Thread safety, fail-fast, fail-safety of this method is not expected.
static <C1,I1,C2,I2,T> int iterate(SequentialRead<C1,I1,aType.a<T>> sa1, C1 source1, SequentialRead<C2,I2,aType.aInt> sa2, C2 source2, LObjIntConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer. Thread safety, fail-fast, fail-safety of this method depends highly on the arguments.
static <C1,T> int indexedForEach(IndexedRead<C1,aType.a<T>> ia1, C1 source1, LObjIntConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer (with index). Thread safety, fail-fast, fail-safety of this method is not expected.
static <C1,I1,T> int indexedIterate(SequentialRead<C1,I1,aType.a<T>> sa1, C1 source1, LObjIntConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer (with index). Thread safety, fail-fast, fail-safety of this method depends highly on the arguments.
static <T,C2> T targetedForEach(T a1,
IndexedRead<C2,aType.aInt> ia2,
C2 source2,
LObjIntConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer. First argument is designated as ‘target’ object. Thread safety, fail-fast, fail-safety of this method is not expected.
static <T,C2,I2> T targetedIterate(T a1,
SequentialRead<C2,I2,aType.aInt> sa2,
C2 source2,
LObjIntConsumer<? super T> consumer)
For each element (or tuple) from arguments, calls the consumer. First argument is designated as ‘target’ object. Thread safety, fail-fast, fail-safety of this method depends highly on the arguments.
default <C2> T genericForEach(T a1, IndexedRead<C2,aType.aInt> ia2, C2 source2)
ITERATION: TE_CONSUMER_GEN_IA: FOR, [SourcePurpose{arg=T a1, type=CONST}, SourcePurpose{arg=int a2, type=IA}]
genericForEach in interface TeConsumer<T,aType.aInt>default <C2,I2> T genericIterate(T a1, SequentialRead<C2,I2,aType.aInt> sa2, C2 source2)
ITERATION: TE_CONSUMER_GEN_SA: WHILE, [SourcePurpose{arg=T a1, type=CONST}, SourcePurpose{arg=int a2, type=SA}]
genericIterate in interface TeConsumer<T,aType.aInt>Copyright © 2019. All rights reserved.