| 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>>,?,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 |
|---|---|
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. |
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 |
|---|---|
Function<no.digipost.collection.MultitupleBuilder<T1,T2>,Optional<Tuple<T1,List<T2>>>> |
EnforceDistinctFirstTupleElementCollector.finisher() |
| Constructor and Description |
|---|
EnforceDistinctFirstTupleElementCollector(BiFunction<? super Tuple<T1,List<T2>>,? super Tuple<T1,Optional<T2>>,? extends RuntimeException> exceptionOnNonDistinctFirstElement) |
EnforceDistinctFirstTupleElementCollector(BiFunction<? super Tuple<T1,List<T2>>,? super Tuple<T1,Optional<T2>>,? extends RuntimeException> exceptionOnNonDistinctFirstElement) |
| Modifier and Type | Method and Description |
|---|---|
Tuple<T1,T2> |
ViewableAsTuple.asTuple() |
Tuple<T1,T2> |
Tuple.asTuple() |
<S1,S2> Tuple<S1,S2> |
Tuple.map(Function<? super T1,? extends S1> firstMapper,
Function<? super T2,? extends S2> secondMapper)
Create a new tuple by applying a function to each element, and putting the
results to corresponding positions in the new tuple.
|
<S1> Tuple<S1,T2> |
Tuple.mapFirst(Function<? super T1,? extends S1> mapper)
Create a new tuple by applying a function to the first element, and putting the
result as the first element of the new tuple.
|
<S2> Tuple<T1,S2> |
Tuple.mapSecond(Function<? super T2,? extends S2> mapper)
Create a new tuple by applying a function to the second element, and putting the
result as the second element of the new tuple.
|
static <T1,T2> Tuple<T1,T2> |
Tuple.of(T1 first,
T2 second) |
default Tuple<T2,T1> |
Tuple.swap() |
| Modifier and Type | Method and Description |
|---|---|
static <T1,T2,T3> Triple<T1,T2,T3> |
Triple.flatten(Tuple<Tuple<T1,T2>,T3> nestedTuple) |
static <T1,T2,T3,T4> |
Quadruple.flatten(Tuple<Tuple<Tuple<T1,T2>,T3>,T4> nestedTuple) |
static <T1,T2,T3,T4,T5> |
Pentuple.flatten(Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5> nestedTuple) |
static <T1,T2,T3,T4,T5,T6> |
Hextuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7> |
Septuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7,T8> |
Octuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7>,T8> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7,T8,T9> |
Nonuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7>,T8>,T9> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7,T8,T9,T10> |
Decuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7>,T8>,T9>,T10> nestedTuple) |
| Modifier and Type | Method and Description |
|---|---|
static <T1,T2,T3> Triple<T1,T2,T3> |
Triple.flatten(Tuple<Tuple<T1,T2>,T3> nestedTuple) |
static <T1,T2,T3,T4> |
Quadruple.flatten(Tuple<Tuple<Tuple<T1,T2>,T3>,T4> nestedTuple) |
static <T1,T2,T3,T4> |
Quadruple.flatten(Tuple<Tuple<Tuple<T1,T2>,T3>,T4> nestedTuple) |
static <T1,T2,T3,T4,T5> |
Pentuple.flatten(Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5> nestedTuple) |
static <T1,T2,T3,T4,T5> |
Pentuple.flatten(Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5> nestedTuple) |
static <T1,T2,T3,T4,T5> |
Pentuple.flatten(Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5> nestedTuple) |
static <T1,T2,T3,T4,T5,T6> |
Hextuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6> nestedTuple) |
static <T1,T2,T3,T4,T5,T6> |
Hextuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6> nestedTuple) |
static <T1,T2,T3,T4,T5,T6> |
Hextuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6> nestedTuple) |
static <T1,T2,T3,T4,T5,T6> |
Hextuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7> |
Septuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7> |
Septuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7> |
Septuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7> |
Septuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7> |
Septuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7,T8> |
Octuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7>,T8> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7,T8> |
Octuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7>,T8> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7,T8> |
Octuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7>,T8> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7,T8> |
Octuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7>,T8> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7,T8> |
Octuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7>,T8> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7,T8> |
Octuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7>,T8> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7,T8,T9> |
Nonuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7>,T8>,T9> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7,T8,T9> |
Nonuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7>,T8>,T9> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7,T8,T9> |
Nonuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7>,T8>,T9> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7,T8,T9> |
Nonuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7>,T8>,T9> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7,T8,T9> |
Nonuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7>,T8>,T9> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7,T8,T9> |
Nonuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7>,T8>,T9> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7,T8,T9> |
Nonuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7>,T8>,T9> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7,T8,T9,T10> |
Decuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7>,T8>,T9>,T10> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7,T8,T9,T10> |
Decuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7>,T8>,T9>,T10> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7,T8,T9,T10> |
Decuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7>,T8>,T9>,T10> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7,T8,T9,T10> |
Decuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7>,T8>,T9>,T10> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7,T8,T9,T10> |
Decuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7>,T8>,T9>,T10> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7,T8,T9,T10> |
Decuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7>,T8>,T9>,T10> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7,T8,T9,T10> |
Decuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7>,T8>,T9>,T10> nestedTuple) |
static <T1,T2,T3,T4,T5,T6,T7,T8,T9,T10> |
Decuple.flatten(Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<Tuple<T1,T2>,T3>,T4>,T5>,T6>,T7>,T8>,T9>,T10> nestedTuple) |
| Modifier and Type | Method and Description |
|---|---|
Tuple<Attribute<V>,V> |
Attribute.withValue(V value)
Bundle an attribute with an associated value in a
Tuple. |
Copyright © 2016 Digipost. All rights reserved.