public static class IndexedIntConsumer.Util extends Object
| Modifier and Type | Method and Description |
|---|---|
static IndexedIntConsumer |
accept(IntConsumer c1,
IntConsumer c2)
Returns an
IndexedIntConsumer that accepts IntConsumer
for index and IntConsumer for value. |
static IndexedIntConsumer |
andThen(IndexedIntConsumer c1,
IndexedIntConsumer c2)
Composes
IndexedIntConsumer calls. |
public static IndexedIntConsumer andThen(IndexedIntConsumer c1, IndexedIntConsumer c2)
IndexedIntConsumer calls.
c1.accept(index, value); c2.accept(index, value);
c1 - the first IndexedIntConsumerc2 - the second IndexedIntConsumerIndexedIntConsumerNullPointerException - if c1 or c2 is nullpublic static IndexedIntConsumer accept(IntConsumer c1, IntConsumer c2)
IndexedIntConsumer that accepts IntConsumer
for index and IntConsumer for value.
if (c1 != null)
c1.accept(index);
if (c2 != null)
c2.accept(object);
c1 - the IntConsumer for index, can be nullc2 - the IntConsumer for value, can be nullIndexedIntConsumerCopyright © 2018. All rights reserved.