| Package | Description |
|---|---|
| no.digipost | |
| no.digipost.collection |
| Modifier and Type | Method and Description |
|---|---|
static <T,A,R> AdaptableCollector<T,A,R> |
DiggCollectors.adapt(Collector<T,A,R> collector)
Turn any
Collector into an AdaptableCollector. |
static <T> AdaptableCollector<T,OneTimeAssignment<T>,Optional<T>> |
DiggCollectors.allowAtMostOne()
This is a collector for accessing the expected only element of a
Stream, as
it will throw an exception if more than one element is processed. |
static <T1,T2> AdaptableCollector<ViewableAsTuple<T1,Optional<T2>>,?,Map<T1,List<T2>>> |
DiggCollectors.toMultimap()
A multimap maps from keys to lists, and this collector will arrange
tuples
by putting each distinct first tuple-element as keys of the resulting map, mapping
them to a List, and adding each second tuple-element to the list. |
static <T,K,V> AdaptableCollector<T,?,Map<K,List<V>>> |
DiggCollectors.toMultimap(Function<? super T,K> keyExtractor,
Function<? super T,Optional<V>> extractor) |
static <T,V> AdaptableCollector<T,?,Map<T,List<V>>> |
DiggCollectors.toMultimap(Function<? super T,Optional<V>> extractor) |
| Modifier and Type | Method and Description |
|---|---|
<M> AdaptableCollector<T,A,M> |
AdaptableCollector.andThen(Function<? super R,M> resultMapper)
Create a new
Collector which maps the resulting container to something else
using the given resultMapper Function. |
static <T,A,R> AdaptableCollector<T,A,R> |
AdaptableCollector.of(Supplier<A> supplier,
BiConsumer<A,T> accumulator,
BinaryOperator<A> combiner,
Function<A,R> finisher,
Collector.Characteristics... characteristics) |
static <T,A,R> AdaptableCollector<T,A,R> |
AdaptableCollector.of(Supplier<A> supplier,
BiConsumer<A,T> accumulator,
BinaryOperator<A> combiner,
Function<A,R> finisher,
Set<Collector.Characteristics> characteristics) |
Copyright © 2016 Digipost. All rights reserved.