Streams.ArrayCollector

@Deprecated public static class org.apache.commons.lang3.Streams.ArrayCollector<O> implements Collector<O, List<O>, O[]>[source]

Deprecated: Use Streams.ArrayCollector.

A Collector type for arrays.

Type parameters:

<O> – The array type.

Constructors

ArrayCollector(Class<O> elementType)

Constructs a new instance for the given element type.

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

Constructs a new instance for the given element type.

Parameters:

elementType – The element type.

Methods

BiConsumer<List<O>, O>

accumulator()

Set<Collector.Characteristics>

characteristics()

BinaryOperator<List<O>>

combiner()

Function<List<O>, O[]>

finisher()

Supplier<List<O>>

supplier()

public BiConsumer<List<O>, O> accumulator()[source]
Specified by:

accumulator in interface Collector

public Set<Collector.Characteristics> characteristics()[source]
Specified by:

characteristics in interface Collector

public BinaryOperator<List<O>> combiner()[source]
Specified by:

combiner in interface Collector

public Function<List<O>, O[]> finisher()[source]
Specified by:

finisher in interface Collector

public Supplier<List<O>> supplier()[source]
Specified by:

supplier in interface Collector