Constructor and Description |
---|
Triple(A fst,
B snd,
C thd) |
Triple(A fst,
Pair<? extends B,? extends C> pair) |
Triple(Pair<? extends A,? extends B> pair,
C thd) |
Triple(Triple<? extends A,? extends B,? extends C> triple) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
A |
getFst() |
Pair<A,B> |
getFstSnd() |
B |
getSnd() |
Pair<B,C> |
getSndThd() |
C |
getThd() |
int |
hashCode() |
static <A,B,C> List<A> |
mapFst(List<Triple<A,B,C>> triples)
Returns the first element of the tuples in the same order.
|
static <A,B,C> A[] |
mapFst(Triple<A,B,C>[] triples,
A... array)
Returns the first element of the tuples in the same order.
|
static <A,B,C> List<B> |
mapSnd(List<Triple<A,B,C>> triples)
Returns the second element of the tuples in the same order.
|
static <A,B,C> B[] |
mapSnd(Triple<A,B,C>[] triples,
B... array)
Returns the second element of the tuples in the same order.
|
static <A,B,C> List<C> |
mapThd(List<Triple<A,B,C>> triples)
Returns the third element of the tuples in the same order.
|
static <A,B,C> C[] |
mapThd(Triple<A,B,C>[] triples,
C... array)
Returns the third element of the tuples in the same order.
|
String |
toString() |
public static <A,B,C> List<A> mapFst(List<Triple<A,B,C>> triples)
map fst
.A
- the type of first element in the pairsB
- the type of second element in the pairsC
- the type of third element in the pairstriples
- the tuples@SafeVarargs public static <A,B,C> A[] mapFst(Triple<A,B,C>[] triples, A... array)
map fst
.A
- the type of first element in the pairsB
- the type of second element in the pairsC
- the type of third element in the pairstriples
- the tuplesarray
- the array to write to if the size is correctpublic static <A,B,C> List<B> mapSnd(List<Triple<A,B,C>> triples)
map snd
.A
- the type of first element in the pairsB
- the type of second element in the pairsC
- the type of third element in the pairstriples
- the tuples@SafeVarargs public static <A,B,C> B[] mapSnd(Triple<A,B,C>[] triples, B... array)
map snd
.A
- the type of first element in the pairsB
- the type of second element in the pairsC
- the type of third element in the pairstriples
- the tuplesarray
- the array to write to if the size is correctpublic static <A,B,C> List<C> mapThd(List<Triple<A,B,C>> triples)
map thd
.A
- the type of first element in the pairsB
- the type of second element in the pairsC
- the type of third element in the pairstriples
- the tuples@SafeVarargs public static <A,B,C> C[] mapThd(Triple<A,B,C>[] triples, C... array)
map thd
.A
- the type of first element in the pairsB
- the type of second element in the pairsC
- the type of third element in the pairstriples
- the tuplesarray
- the array to write to if the size is correctCopyright © 2013. All Rights Reserved.