|
TUM CCSM Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.tum.cs.commons.collections.ImmutablePair<S,T>
edu.tum.cs.commons.collections.Pair<S,T>
public class Pair<S,T>
Simple pair class.
| Field Summary |
|---|
| Fields inherited from class edu.tum.cs.commons.collections.ImmutablePair |
|---|
first, second |
| Constructor Summary | |
|---|---|
Pair(ImmutablePair<S,T> p)
Copy constructor. |
|
Pair(S first,
T second)
Constructor. |
|
| Method Summary | |
|---|---|
protected Pair<S,T> |
clone()
|
Pair<S,T> |
deepClone()
Deep clone of this object. |
static Pair<Integer,Integer> |
parseIntPair(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. |
| Methods inherited from class edu.tum.cs.commons.collections.ImmutablePair |
|---|
compareTo, equals, getFirst, getSecond, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Pair(S first,
T second)
public Pair(ImmutablePair<S,T> p)
| Method Detail |
|---|
public void setFirst(S first)
public void setSecond(T second)
protected Pair<S,T> clone()
clone in class ImmutablePair<S,T>
public Pair<S,T> deepClone()
throws DeepCloneException
deepClone in interface IDeepCloneabledeepClone in class ImmutablePair<S,T>DeepCloneException - if problems during cloning occured.public static Pair<Integer,Integer> parseIntPair(String string)
NumberFormatException - if the format does not match
|
TUM CCSM Commons | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||