public static class IndexedLongConsumer.Util
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static IndexedLongConsumer |
accept(IntConsumer c1,
LongConsumer c2)
Returns an
IndexedLongConsumer that accepts IntConsumer
for index and LongConsumer for value. |
static IndexedLongConsumer |
andThen(IndexedLongConsumer c1,
IndexedLongConsumer c2)
Composes
IndexedLongConsumer calls. |
public static IndexedLongConsumer andThen(@NotNull IndexedLongConsumer c1, @NotNull IndexedLongConsumer c2)
IndexedLongConsumer calls.
c1.accept(index, value); c2.accept(index, value);
c1 - the first IndexedLongConsumerc2 - the second IndexedLongConsumerIndexedLongConsumerjava.lang.NullPointerException - if c1 or c2 is nullpublic static IndexedLongConsumer accept(@Nullable IntConsumer c1, @Nullable LongConsumer c2)
IndexedLongConsumer that accepts IntConsumer
for index and LongConsumer for value.
if (c1 != null)
c1.accept(index);
if (c2 != null)
c2.accept(object);
c1 - the IntConsumer for index, can be nullc2 - the LongConsumer for value, can be nullIndexedLongConsumer