public class Pair<S,T> extends ImmutablePair<S,T>
first, second
Constructor and Description |
---|
Pair(ImmutablePair<S,T> p)
Copy constructor.
|
Pair(S first,
T second)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Pair<S,T> |
clone() |
static <S,T> Pair<S,T> |
createPair(S first,
T second)
Factory method for pairs, to simplify creation.
|
static Pair<java.lang.Integer,java.lang.Integer> |
parseIntPair(java.lang.String string)
Converts a string comma separated integers to a pair of Integers.
|
void |
setFirst(S first)
Set the first value.
|
void |
setSecond(T second)
Set the second value.
|
public Pair(ImmutablePair<S,T> p)
public static Pair<java.lang.Integer,java.lang.Integer> parseIntPair(java.lang.String string)
java.lang.NumberFormatException
- if the format does not matchpublic static <S,T> Pair<S,T> createPair(S first, T second)