ResultSelector

public interface ResultSelector<T> implements Collector<T, List<T>, Optional<T>>

Represents an interface that extracts a result from a list. Meant to be used as a collection operation on a stream.

Parameters

<T>

the type of the result to extract

Functions

accumulator
Link copied to clipboard
BiConsumer<List<T>, Taccumulator()
characteristics
Link copied to clipboard
Set<Collector.Characteristicscharacteristics()
combiner
Link copied to clipboard
BinaryOperator<List<T>> combiner()
finisher
Link copied to clipboard
Function<List<T>, Optional<T>> finisher()
of
Link copied to clipboard
static Collector<T, R, Rof<T, R>(Supplier<R> supplier, BiConsumer<R, T> accumulator, BinaryOperator<R> combiner, Array<Collector.Characteristics> characteristics)
static Collector<T, A, Rof<T, A, R>(Supplier<A> supplier, BiConsumer<A, T> accumulator, BinaryOperator<A> combiner, Function<A, R> finisher, Array<Collector.Characteristics> characteristics)
select
Link copied to clipboard
abstract Optional<Tselect(List<T> results)
Extracts a result from the list.
supplier
Link copied to clipboard
Supplier<List<T>> supplier()