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