|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.samskivert.util.IntTuple
public class IntTuple
A simple object that holds a reference to two ints.
| Field Summary | |
|---|---|
int |
left
The left int. |
int |
right
The right int. |
| Constructor Summary | |
|---|---|
IntTuple()
Construct a blank tuple. |
|
IntTuple(int left,
int right)
Construct a tuple with the specified two objects. |
|
| Method Summary | |
|---|---|
int |
compareTo(IntTuple ot)
|
boolean |
equals(Object other)
A tuple is equal to another tuple if the left and right elements are equal to the left and right elements (respectively) of the other tuple. |
int |
hashCode()
Returns the combined hashcode of the two elements. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public int left
public int right
| Constructor Detail |
|---|
public IntTuple(int left,
int right)
public IntTuple()
| Method Detail |
|---|
public int hashCode()
hashCode in class Objectpublic int compareTo(IntTuple ot)
compareTo in interface Comparable<IntTuple>public boolean equals(Object other)
equals in class Objectpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||