com.dtolabs.rundeck.core.utils
Class Pairs

java.lang.Object
  extended by com.dtolabs.rundeck.core.utils.Pairs

public class Pairs
extends java.lang.Object

Utility methods for using Pair instances

Since:
2014-06-26

Constructor Summary
Pairs()
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pairs

public 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 -
W -
Parameters:
list -
Returns:

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 -
W -
Parameters:
list -
Returns: