Package com.dtolabs.rundeck.core.utils
Class Pairs
- java.lang.Object
-
- com.dtolabs.rundeck.core.utils.Pairs
-
public class Pairs extends java.lang.Object
Utility methods for usingPair
instances- Since:
- 2014-06-26
-
-
Constructor Summary
Constructors Constructor Description Pairs()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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 pairsstatic <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
-
-
-
Method Detail
-
listFirst
public 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- Type Parameters:
T
- first typeW
- second type- Parameters:
list
- list- Returns:
- list of firsts
-
listSecond
public 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- Type Parameters:
T
- first typeW
- second type- Parameters:
list
- list- Returns:
- list of seconds
-
-