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