| Package | Description |
|---|---|
| no.digipost | |
| no.digipost.collection | |
| no.digipost.tuple | |
| no.digipost.util |
| Modifier and Type | Method and Description |
|---|---|
static <T1,T2> Collector<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 <T1,T2> Collector<ViewableAsTuple<T1,Optional<T2>>,?,Optional<Tuple<T1,List<T2>>>> |
DiggCollectors.toMultituple()
A multituple is similar to a multimap in that it consists of one
first value and a List of
values as the second value,
and this collector will collect tuples where it is expected that all the first tuple-elements
are equal, and re-arrange them by putting the distinct first element into a new Tuple, and collate each of the second
elements into a new List which is set as the second element of the new Tuple. |
static <T1,T2> Collector<ViewableAsTuple<T1,Optional<T2>>,?,Optional<Tuple<T1,List<T2>>>> |
DiggCollectors.toMultitupleOrThrowIfNonDistinct(BiFunction<? super Tuple<T1,List<T2>>,? super Tuple<T1,Optional<T2>>,? extends RuntimeException> exceptionOnNonDistinctFirstElement)
A multituple is similar to a multimap in that it consists of one
first value and a List of
values as the second value,
and this collector will collect tuples where it is expected that all the first tuple-elements
are equal, and re-arrange them by putting the distinct first element into a new Tuple, and collate each of the second
elements into a new List which is set as the second element of the new Tuple. |
| Modifier and Type | Method and Description |
|---|---|
BiConsumer<no.digipost.collection.MultitupleBuilder<T1,T2>,ViewableAsTuple<T1,Optional<T2>>> |
EnforceDistinctFirstTupleElementCollector.accumulator() |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Tuple<T1,T2>
A tuple is a simple composition of two arbitrary values (objects).
|
| Modifier and Type | Method and Description |
|---|---|
<V> AttributesMap.Builder |
AttributesMap.Builder.and(ViewableAsTuple<? extends SetsNamedValue<V>,V> attributeWithValue)
Add an attribute coupled with a value.
|
static <V> AttributesMap.Builder |
AttributesMap.with(ViewableAsTuple<? extends SetsNamedValue<V>,V> attributeWithValue,
AttributesMap.Config... configSwitches) |
Copyright © 2019 Digipost. All rights reserved.