|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.rice.cs.cunit.util.Pair<FIRST,SECOND>
public class Pair<FIRST,SECOND>
Generic pair container.
Field Summary | |
---|---|
(package private) FIRST |
_first
First value of the pair. |
(package private) SECOND |
_second
Second value of the pair. |
Constructor Summary | |
---|---|
Pair(FIRST first,
SECOND second)
Create a new pair of the specified values. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Return true if the two values of this value are equal to the two values of the other value. |
FIRST |
first()
Accessor for the first value. |
int |
hashCode()
Return a hashcode for this pair. |
SECOND |
second()
Accessor for the second value. |
void |
setFirst(FIRST first)
Mutator for the first value. |
void |
setSecond(SECOND second)
Mutator for the second value. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
FIRST _first
SECOND _second
Constructor Detail |
---|
public Pair(FIRST first, SECOND second)
first
- first valuesecond
- second valueMethod Detail |
---|
public FIRST first()
public void setFirst(FIRST first)
first
- new first valuepublic SECOND second()
public void setSecond(SECOND second)
second
- new second valuepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- other value
public int hashCode()
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |