public static class IndexedLongConsumer.Util extends 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(IndexedLongConsumer c1, IndexedLongConsumer c2)
IndexedLongConsumer calls.
c1.accept(index, value); c2.accept(index, value);
c1 - the first IndexedLongConsumerc2 - the second IndexedLongConsumerIndexedLongConsumerNullPointerException - if c1 or c2 is nullpublic static IndexedLongConsumer accept(IntConsumer c1, 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 nullIndexedLongConsumerCopyright © 2018. All rights reserved.