|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object soc.util.IntPair
public class IntPair
An ordered pair of 2 ints.
IntTriple
Field Summary | |
---|---|
int |
a
The first int of the ordered pair |
int |
b
The second int of the ordered pair |
Constructor Summary | |
---|---|
IntPair(int a,
int b)
Creates a new IntPair object. |
Method Summary | |
---|---|
boolean |
equals(IntPair ip)
Are these IntPairs' integers equal (unordered comparison)? |
int |
getA()
Get the first int of this pair. |
int |
getB()
Get the second int of this pair. |
void |
setA(int val)
Set the first int of this pair. |
void |
setB(int val)
Set the second int of this pair. |
java.lang.String |
toString()
Get a string with the hex contents of this pair. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int a
public int b
Constructor Detail |
---|
public IntPair(int a, int b)
a
- First intb
- Second intMethod Detail |
---|
public boolean equals(IntPair ip)
ip
- Another IntPair
public int getA()
a
public int getB()
b
public void setA(int val)
val
- New value for a
public void setB(int val)
val
- New value for b
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 |