|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectPair
public final class Pair
An ordered pair of ints.
This class conforms to the immutable design pattern.
Field Summary | |
---|---|
int |
s1
The first int. |
int |
s2
The second int. |
Constructor Summary | |
---|---|
Pair(Integer i1,
Integer i2)
Initializes the pair. |
|
Pair(int i1,
int i2)
Initializes the pair. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Fulfills java.lang.Object. |
int |
hashCode()
Fulfills java.lang.Object. |
Methods inherited from class Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public final int s1
public final int s2
Constructor Detail |
---|
public Pair(Integer i1, Integer i2)
i1
- the first int.i2
- the second int.public Pair(int i1, int i2)
i1
- the first int.i2
- the second int.Method Detail |
---|
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |