public class BuiltInCollectorFactories extends Object
| Constructor and Description |
|---|
BuiltInCollectorFactories() |
| Modifier and Type | Method and Description |
|---|---|
static <T> CollectorFactory |
fromSupplier(Class<T> collectionType,
Supplier<Collector<?,?,?>> collector)
Create a CollectorFactory from collection type and a collector supplier.
|
static Collection<CollectorFactory> |
get() |
public static <T> CollectorFactory fromSupplier(Class<T> collectionType, Supplier<Collector<?,?,?>> collector)
Collection types since they
have a single type parameter.T - the type of the collectioncollectionType - the collection type that will eventually be producedcollector - the constructor of collectorspublic static Collection<CollectorFactory> get()
Copyright © 2017. All rights reserved.