Package org.apache.commons.lang3.stream
Class Streams.ArrayCollector<O>
- java.lang.Object
-
- org.apache.commons.lang3.stream.Streams.ArrayCollector<O>
-
- Type Parameters:
O
- The array type.
- All Implemented Interfaces:
java.util.stream.Collector<O,java.util.List<O>,O[]>
- Enclosing class:
- Streams
public static class Streams.ArrayCollector<O> extends java.lang.Object implements java.util.stream.Collector<O,java.util.List<O>,O[]>
A Collector type for arrays.
-
-
Constructor Summary
Constructors Constructor Description ArrayCollector(java.lang.Class<O> elementType)
Constructs a new instance for the given element type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.function.BiConsumer<java.util.List<O>,O>
accumulator()
java.util.Set<java.util.stream.Collector.Characteristics>
characteristics()
java.util.function.BinaryOperator<java.util.List<O>>
combiner()
java.util.function.Function<java.util.List<O>,O[]>
finisher()
java.util.function.Supplier<java.util.List<O>>
supplier()
-
-
-
Constructor Detail
-
ArrayCollector
public ArrayCollector(java.lang.Class<O> elementType)
Constructs a new instance for the given element type.- Parameters:
elementType
- The element type.
-
-
Method Detail
-
characteristics
public java.util.Set<java.util.stream.Collector.Characteristics> characteristics()
-
combiner
public java.util.function.BinaryOperator<java.util.List<O>> combiner()
-
-