|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectDAT.Pair
public class Pair
A pair (2-tuple) of information.
| Field Summary | |
|---|---|
java.lang.Object |
item1
the first item (or domain item) |
java.lang.Object |
item2
the second item (or codomain item) |
| Constructor Summary | |
|---|---|
Pair(java.lang.Object i1,
java.lang.Object i2)
create a new pair |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
determine whether this pair is the same as the object passed checks that both items are the same using the items' equals methods |
java.lang.String |
toString()
generate a string representation of the pair of the form < item1 , item2 > |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public java.lang.Object item1
public java.lang.Object item2
| Constructor Detail |
|---|
public Pair(java.lang.Object i1,
java.lang.Object i2)
i1 - the first itemi2 - the second item| Method Detail |
|---|
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - the object to be compared
public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||