|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectumontreal.iro.lecuyer.util.Pair<S,T>
S
- the type of the first value.T
- the type of the second value.public class Pair<S,T>
Represents a pair of values.
Constructor Summary | |
---|---|
Pair(Pair<? extends S,? extends T> pair)
Constructs a new pair from the pair pair. |
|
Pair(S first,
T second)
Constructs a new pair for values first and second. |
Method Summary | |
---|---|
Pair<S,T> |
clone()
Clones this pair. |
boolean |
equals(Object obj)
|
S |
getFirst()
Returns the first value of this pair. |
T |
getSecond()
Returns the second value of this pair. |
int |
hashCode()
|
void |
setFirst(S first)
Sets the first value of this pair to first. |
void |
setSecond(T second)
Sets the second value of this pair to second. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Pair(S first, T second)
first
- the first value.second
- the second value.public Pair(Pair<? extends S,? extends T> pair)
pair
- the pair to get values from.
NullPointerException
- if pair is null.Method Detail |
---|
public S getFirst()
public void setFirst(S first)
first
- the new first value of this pair.public T getSecond()
public void setSecond(T second)
second
- the second value of this pair.public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public Pair<S,T> clone()
clone
in class Object
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |