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, wait
toConsumer, toConsumer
Copyright © 2017. All rights reserved.