| Modifier and Type | Method and Description |
|---|---|
Map<A,B> |
asMap()
Convert this
Tuple instance into a Map with one key,value pair. |
static <K,V> Map<K,V> |
asMap(Collection<Osgl.Tuple<K,V>> list)
Convert a list of
Tuple instances into a Map. |
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
public Map<A,B> asMap()
Tuple instance into a Map with one key,value pair. Where
key is _1 and value is _2;public static <K,V> Map<K,V> asMap(Collection<Osgl.Tuple<K,V>> list)
Tuple instances into a Map. Where
key is _1 and value is _2;
Note that the size of the returned map might be lesser than
the size of the tuple list if there are multiple _1 has
the same value, and the last one is the winner and it's _2
will be put into the map
K - the key typeV - the value typelist - the list of tuples to be transformed into mapCopyright © 2017. All Rights Reserved.