public final class Tuples
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <K,V> K |
kvpKeySelector(KeyValuePair<K,V> kvp)
Calls getKey() on map entries specified
|
static <K,V> V |
kvpValueSelector(KeyValuePair<K,V> kvp)
Calls getValue() on key/value pair function arguments
|
static <K,V> K |
mapKeySelector(java.util.Map.Entry<K,V> entry)
Calls getKey() on map entries specified
|
static <K,V> V |
mapValueSelector(java.util.Map.Entry<K,V> entry)
Calls getValue() on map entries specified
|
static <TFirst,TSecond> |
pairFirstSelector(Pair<TFirst,TSecond> pair)
Returns the first element of the pair
|
static <TFirst,TSecond> |
pairSecondSelector(Pair<TFirst,TSecond> pair)
Returns the second element of the pair
|
static <TFirst,TSecond,TThird,TFourth> |
quadrupleFirstSelector(Quadruple<TFirst,TSecond,TThird,TFourth> quadruple)
Returns the first element of the quadruple
|
static <TFirst,TSecond,TThird,TFourth,TFifth> |
quadrupleFourthSelector(Quadruple<TFirst,TSecond,TThird,TFourth> quadruple)
Returns the fourth element of the quadruple
|
static <TFirst,TSecond,TThird,TFourth> |
quadrupleSecondSelector(Quadruple<TFirst,TSecond,TThird,TFourth> quadruple)
Returns the second element of the quadruple
|
static <TFirst,TSecond,TThird,TFourth> |
quadrupleThirdSelector(Quadruple<TFirst,TSecond,TThird,TFourth> quadruple)
Returns the third element of the quadruple
|
static <TFirst,TSecond,TThird,TFourth,TFifth> |
quintupleFifthSelector(Quintuple<TFirst,TSecond,TThird,TFourth,TFifth> quintuple)
Returns the fifth element of the quintuple
|
static <TFirst,TSecond,TThird,TFourth,TFifth> |
quintupleFirstSelector(Quintuple<TFirst,TSecond,TThird,TFourth,TFifth> quintuple)
Returns the first element of the quintuple
|
static <TFirst,TSecond,TThird,TFourth,TFifth> |
quintupleFourthSelector(Quintuple<TFirst,TSecond,TThird,TFourth,TFifth> quintuple)
Returns the fourth element of the quintuple
|
static <TFirst,TSecond,TThird,TFourth,TFifth> |
quintupleSecondSelector(Quintuple<TFirst,TSecond,TThird,TFourth,TFifth> quintuple)
Returns the second element of the quintuple
|
static <TFirst,TSecond,TThird,TFourth,TFifth> |
quintupleThirdSelector(Quintuple<TFirst,TSecond,TThird,TFourth,TFifth> quintuple)
Returns the third element of the quintuple
|
static <TFirst,TSecond,TThird> |
tripleFirstSelector(Triple<TFirst,TSecond,TThird> triple)
Returns the first element of the triple
|
static <TFirst,TSecond,TThird> |
tripleSecondSelector(Triple<TFirst,TSecond,TThird> triple)
Returns the second element of the triple
|
static <TFirst,TSecond,TThird> |
tripleThirdSelector(Triple<TFirst,TSecond,TThird> triple)
Returns the third element of the triple
|
public static <TFirst,TSecond> TFirst pairFirstSelector(Pair<TFirst,TSecond> pair)
public static <TFirst,TSecond> TSecond pairSecondSelector(Pair<TFirst,TSecond> pair)
public static <TFirst,TSecond,TThird> TFirst tripleFirstSelector(Triple<TFirst,TSecond,TThird> triple)
public static <TFirst,TSecond,TThird> TSecond tripleSecondSelector(Triple<TFirst,TSecond,TThird> triple)
public static <TFirst,TSecond,TThird> TThird tripleThirdSelector(Triple<TFirst,TSecond,TThird> triple)
public static <TFirst,TSecond,TThird,TFourth> TFirst quadrupleFirstSelector(Quadruple<TFirst,TSecond,TThird,TFourth> quadruple)
public static <TFirst,TSecond,TThird,TFourth> TSecond quadrupleSecondSelector(Quadruple<TFirst,TSecond,TThird,TFourth> quadruple)
public static <TFirst,TSecond,TThird,TFourth> TThird quadrupleThirdSelector(Quadruple<TFirst,TSecond,TThird,TFourth> quadruple)
public static <TFirst,TSecond,TThird,TFourth,TFifth> TFourth quadrupleFourthSelector(Quadruple<TFirst,TSecond,TThird,TFourth> quadruple)
public static <TFirst,TSecond,TThird,TFourth,TFifth> TFirst quintupleFirstSelector(Quintuple<TFirst,TSecond,TThird,TFourth,TFifth> quintuple)
public static <TFirst,TSecond,TThird,TFourth,TFifth> TSecond quintupleSecondSelector(Quintuple<TFirst,TSecond,TThird,TFourth,TFifth> quintuple)
public static <TFirst,TSecond,TThird,TFourth,TFifth> TThird quintupleThirdSelector(Quintuple<TFirst,TSecond,TThird,TFourth,TFifth> quintuple)
public static <TFirst,TSecond,TThird,TFourth,TFifth> TFourth quintupleFourthSelector(Quintuple<TFirst,TSecond,TThird,TFourth,TFifth> quintuple)
public static <TFirst,TSecond,TThird,TFourth,TFifth> TFifth quintupleFifthSelector(Quintuple<TFirst,TSecond,TThird,TFourth,TFifth> quintuple)
public static <K,V> K mapKeySelector(java.util.Map.Entry<K,V> entry)
java.lang.NullPointerException
- An argument is nullpublic static <K,V> V mapValueSelector(java.util.Map.Entry<K,V> entry)
java.lang.NullPointerException
- An argument is nullpublic static <K,V> K kvpKeySelector(KeyValuePair<K,V> kvp)
java.lang.NullPointerException
- An argument is nullpublic static <K,V> V kvpValueSelector(KeyValuePair<K,V> kvp)
java.lang.NullPointerException
- An argument is null