Streams.ArrayCollector

public static class org.apache.commons.lang3.stream.Streams.ArrayCollector<E> implements Collector<E, List<E>, E[]>[source]

A Collector type for arrays.

Parameters:

<E> – The array type.

Constructors

ArrayCollector(Class)

Constructs a new instance for the given element type.

public ArrayCollector(Class<E> elementType)[source]

Constructs a new instance for the given element type.

Parameters:

elementType – The element type.

Methods

accumulator()

characteristics()

combiner()

finisher()

supplier()

@Override public BiConsumer<List<E>, E> accumulator()[source]
@Override public Set<Collector.Characteristics> characteristics()[source]
@Override public BinaryOperator<List<E>> combiner()[source]
@Override public Function<List<E>, E[]> finisher()[source]
@Override public Supplier<List<E>> supplier()[source]