T - the type of the callback argumentConsumer<T>, CheckedConsumer<T>, Consumer<T>public final class ListCollector<T> extends Object implements Consumer<T>
Consumer that collect all the value into a list.
Equivalent to a Collectors.toList().
| Constructor | Description |
|---|---|
ListCollector() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
accept(T t) |
|
List<T> |
getList() |
toConsumer, toConsumerCopyright © 2019. All rights reserved.