T1 - The type of the first valueT2 - The type of the second valueT3 - The type of the third valuepublic interface Triple<T1,T2,T3> extends ViewableAsTriple<T1,T2,T3>
| Modifier and Type | Method and Description |
|---|---|
Triple<T1,T2,T3> |
asTriple() |
T1 |
first() |
static <T1,T2,T3> Triple<T1,T2,T3> |
flatten(Tuple<Tuple<T1,T2>,T3> nestedTuple) |
<S1,S2,S3> Triple<S1,S2,S3> |
map(Function<? super T1,? extends S1> firstMapper,
Function<? super T2,? extends S2> secondMapper,
Function<? super T3,? extends S3> thirdMapper)
Create a new triple by applying a function to each element, and putting the
results into a new triple.
|
<S1> Triple<S1,T2,T3> |
mapFirst(Function<? super T1,? extends S1> mapper)
Create a new triple by applying a function to the first element, and putting the
result as the first element of the new triple.
|
<S2> Triple<T1,S2,T3> |
mapSecond(Function<? super T2,? extends S2> mapper)
Create a new triple by applying a function to the second element, and putting the
result as the second element of the new triple.
|
<S3> Triple<T1,T2,S3> |
mapThird(Function<? super T3,? extends S3> mapper)
Create a new triple by applying a function to the third element, and putting the
result as the third element of the new triple.
|
static <T1,T2,T3> Triple<T1,T2,T3> |
of(T1 first,
T2 second,
T3 third) |
T2 |
second() |
T3 |
third() |
static <T1,T2,T3> Triple<T1,T2,T3> of(T1 first, T2 second, T3 third)
T1 first()
T2 second()
T3 third()
<S1> Triple<S1,T2,T3> mapFirst(Function<? super T1,? extends S1> mapper)
mapper - the function to apply to the first element<S2> Triple<T1,S2,T3> mapSecond(Function<? super T2,? extends S2> mapper)
mapper - the function to apply to the second element<S3> Triple<T1,T2,S3> mapThird(Function<? super T3,? extends S3> mapper)
mapper - the function to apply to the third element<S1,S2,S3> Triple<S1,S2,S3> map(Function<? super T1,? extends S1> firstMapper, Function<? super T2,? extends S2> secondMapper, Function<? super T3,? extends S3> thirdMapper)
firstMapper - the function to apply to the first elementsecondMapper - the function to apply to the second elementthirdMapper - the function to apply to the third elementCopyright © 2016 Digipost. All rights reserved.