|
|
|||||||||||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.lmu.ifi.dbs.elki.utilities.IntegerTriple
public class IntegerTriple
Provides a key of three integers. Two IntegerTriple-Objects are equal, if they consist of the same three integers defined in the same order.
Field Summary | |
---|---|
private Integer |
first
First integer. |
private Integer |
last
Third integer. |
private Integer |
second
Second integer. |
Constructor Summary | |
---|---|
IntegerTriple()
Empty constructor creating an IntegerTriple-Object. |
|
IntegerTriple(int first,
int second,
int last)
Constructor which initiates an IntegerTriple Object with three integers. |
Method Summary | |
---|---|
int |
compareTo(IntegerTriple o)
Compares this IntegerTriple with an IntegerTriple o. |
boolean |
equals(Object obj)
Verifies if this Object is equals to Object obj. |
int |
getFirst()
|
int |
getLast()
|
int |
getSecond()
|
int |
hashCode()
Creates the hashCode dependent on the three integers this Object consist. |
void |
setFirst(int first)
Sets the first Argument of this Object. |
void |
setLast(int last)
Sets the third Argument of this Object. |
void |
setSecond(int second)
Sets the second Argument of this Object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Integer first
private Integer second
private Integer last
Constructor Detail |
---|
public IntegerTriple(int first, int second, int last)
first
- first integer-valuesecond
- second integer-valuelast
- third integer-valuepublic IntegerTriple()
Method Detail |
---|
public int getFirst()
public int getSecond()
public int getLast()
public int compareTo(IntegerTriple o)
compareTo
in interface Comparable<IntegerTriple>
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
obj
- object to be compared with this object
public void setFirst(int first)
first
- public void setSecond(int second)
second
- public void setLast(int last)
last
-
|
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |