Package com.landawn.abacus.util.stream
Interface Collector<T,A,R>
- All Superinterfaces:
Collector<T,
A, R>
-
Nested Class Summary
Nested classes/interfaces inherited from interface java.util.stream.Collector
Collector.Characteristics
-
Method Summary
Modifier and TypeMethodDescriptionBiConsumer<A,
T> combiner()
finisher()
static <T,
A, R> Collector<T, A, R> static <T,
A, R> Collector<T, A, R> of
(Supplier<A> supplier, BiConsumer<A, T> accumulator, BinaryOperator<A> combiner, Function<A, R> finisher, Collector.Characteristics... characteristics) static <T,
R> Collector<T, R, R> of
(Supplier<R> supplier, BiConsumer<R, T> accumulator, BinaryOperator<R> combiner, Collector.Characteristics... characteristics) static <T,
A, R> Collector<T, A, R> Deprecated.supplier()
-
Method Details
-
supplier
-
accumulator
BiConsumer<A,T> accumulator()- Specified by:
accumulator
in interfaceCollector<T,
A, R>
-
combiner
BinaryOperator<A> combiner() -
finisher
-
characteristics
Set<Collector.Characteristics> characteristics()- Specified by:
characteristics
in interfaceCollector<T,
A, R>
-
from
-
of
Deprecated.replaced byfrom(java.util.stream.Collector)
- Parameters:
collector
-- Returns:
-
of
@SafeVarargs static <T,R> Collector<T,R, ofR> (Supplier<R> supplier, BiConsumer<R, T> accumulator, BinaryOperator<R> combiner, Collector.Characteristics... characteristics) -
of
@SafeVarargs static <T,A, Collector<T,R> A, ofR> (Supplier<A> supplier, BiConsumer<A, T> accumulator, BinaryOperator<A> combiner, Function<A, R> finisher, Collector.Characteristics... characteristics)
-
from(java.util.stream.Collector)