Package org.apache.commons.lang3.stream
Class Streams.ArrayCollector<E>
- java.lang.Object
-
- org.apache.commons.lang3.stream.Streams.ArrayCollector<E>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.stream.Collector
Collector.Characteristics
-
-
Constructor Summary
Constructors Constructor Description ArrayCollector(Class<E> elementType)Constructs a new instance for the given element type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BiConsumer<List<E>,E>accumulator()Set<Collector.Characteristics>characteristics()BinaryOperator<List<E>>combiner()Function<List<E>,E[]>finisher()Supplier<List<E>>supplier()
-
-
-
Constructor Detail
-
ArrayCollector
public ArrayCollector(Class<E> elementType)
Constructs a new instance for the given element type.- Parameters:
elementType- The element type.
-
-
Method Detail
-
accumulator
public BiConsumer<List<E>,E> accumulator()
-
characteristics
public Set<Collector.Characteristics> characteristics()
-
combiner
public BinaryOperator<List<E>> combiner()
-
-