public class Pairs
extends java.lang.Object
Pair
instancesConstructor and Description |
---|
Pairs() |
Modifier and Type | Method and Description |
---|---|
static <T,W> java.util.List<T> |
listFirst(java.util.List<Pair<T,W>> list)
Return a List of the first items from a list of pairs
|
static <T,W> java.util.List<W> |
listSecond(java.util.List<Pair<T,W>> list)
Return a List of the second items from a list of pairs
|
public static <T,W> java.util.List<T> listFirst(java.util.List<Pair<T,W>> list)
T
- first typeW
- second typelist
- listpublic static <T,W> java.util.List<W> listSecond(java.util.List<Pair<T,W>> list)
T
- first typeW
- second typelist
- list