| Package | Description |
|---|---|
| no.digipost.tuple | |
| no.digipost.util |
| 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) |
| 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) |
| 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.