Constructor and Description |
---|
Collectors() |
Collectors(Collector<T>... collectors) |
Modifier and Type | Method and Description |
---|---|
void |
addCollection(Collection<T> items)
Convenience method for adding an existing collection to the collector directly
|
void |
addCollector(Collector<T> collector) |
Collection<T> |
getCollection()
Access the collection of items gathered by this collector
|
public Collection<T> getCollection()
Collector
getCollection
in interface Collector<T>
public void addCollection(Collection<T> items)
items
- the collection to be addedCopyright © 2011–2016 Red Hat. All rights reserved.