T - the type of the callback argumentpublic final class ImmutableListCollector<T> extends Object implements Consumer<T>
Consumer that collect all the value into a list.
Equivalent to a Collectors.toList().
| Constructor and Description |
|---|
ImmutableListCollector() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(T t) |
List<T> |
getList() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoConsumer, toConsumerCopyright © 2020. All rights reserved.