|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.lmu.ifi.dbs.elki.database.ids.integer.IntegerDBIDPair
public class IntegerDBIDPair
DBID pair using two ints for storage.
Field Summary | |
---|---|
int |
first
First value in pair |
int |
second
Second value in pair |
Constructor Summary | |
---|---|
IntegerDBIDPair(int first,
int second)
Initialize pair |
Method Summary | |
---|---|
boolean |
equals(Object obj)
Simple equals statement. |
IntegerDBID |
getFirst()
Getter for first |
IntegerDBID |
getSecond()
Getter for second element in pair |
int |
hashCode()
Canonical hash function, mixing the two hash values. |
String |
toString()
Canonical toString operator |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public int first
public int second
Constructor Detail |
---|
public IntegerDBIDPair(int first, int second)
first
- first parametersecond
- second parameterMethod Detail |
---|
public String toString()
toString
in class Object
public final IntegerDBID getFirst()
getFirst
in interface DBIDPair
getFirst
in interface PairInterface<DBID,DBID>
public final IntegerDBID getSecond()
getSecond
in interface DBIDPair
getSecond
in interface PairInterface<DBID,DBID>
public boolean equals(Object obj)
first
and second
element of
this Pair equal the first
and second
element,
respectively, of the other Pair.
equals
in class Object
obj
- Object to compare topublic final int hashCode()
hashCode
in class Object
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |