|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.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 parameter| Method Detail |
|---|
public String toString()
toString in class Objectpublic final IntegerDBID getFirst()
getFirst in interface DBIDPairgetFirst in interface PairInterface<DBID,DBID>public final IntegerDBID getSecond()
getSecond in interface DBIDPairgetSecond 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 Objectobj - 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 | |||||||||||