Collector.Characteristics| Constructor and Description |
|---|
ArrayCollector(Class<E> elementType)
Constructs a new instance for the given element type.
|
| Modifier and Type | Method and Description |
|---|---|
BiConsumer<List<E>,E> |
accumulator() |
Set<Collector.Characteristics> |
characteristics() |
BinaryOperator<List<E>> |
combiner() |
Function<List<E>,E[]> |
finisher() |
Supplier<List<E>> |
supplier() |
public ArrayCollector(Class<E> elementType)
elementType - The element type.public BiConsumer<List<E>,E> accumulator()
public Set<Collector.Characteristics> characteristics()
public BinaryOperator<List<E>> combiner()
Copyright © 2001–2023 The Apache Software Foundation. All rights reserved.