|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectCITS2200.Pair
public class Pair
A pair (2-tuple) of information.
| Field Summary | |
|---|---|
Object |
item1
the first item (or domain item) |
Object |
item2
the second item (or codomain item) |
| Constructor Summary | |
|---|---|
Pair(Object i1,
Object i2)
create a new pair |
|
| Method Summary | |
|---|---|
boolean |
equals(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 |
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 Object item1
public Object item2
| Constructor Detail |
|---|
public Pair(Object i1,
Object i2)
i1 - the first itemi2 - the second item| Method Detail |
|---|
public boolean equals(Object o)
equals in class Objecto - the object to be compared
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||