class IntegerDBIDPair extends Object implements DBIDPair, IntegerDBIDs
Modifier and Type | Class and Description |
---|---|
private static class |
IntegerDBIDPair.Itr
Iterator.
|
Modifier and Type | Field and Description |
---|---|
int |
first
First value in pair
|
int |
second
Second value in pair
|
Modifier | Constructor and Description |
---|---|
protected |
IntegerDBIDPair(int first,
int second)
Initialize pair
|
Modifier and Type | Method and Description |
---|---|
boolean |
contains(DBIDRef o)
Test whether an ID is contained.
|
boolean |
equals(Object obj) |
IntegerDBID |
getFirst()
Deprecated.
|
IntegerDBID |
getSecond()
Deprecated.
|
int |
hashCode()
Canonical hash function, mixing the two hash values.
|
boolean |
isEmpty()
Test for an empty DBID collection.
|
IntegerDBIDIter |
iter()
Get a DBID iterator (a more efficient API).
|
int |
size()
Retrieve the collection / data size.
|
String |
toString()
Canonical toString operator
|
public int first
public int second
protected IntegerDBIDPair(int first, int second)
first
- first parametersecond
- second parameter@Deprecated public final IntegerDBID getFirst()
DBIDPair
@Deprecated public final IntegerDBID getSecond()
DBIDPair
public final int hashCode()
public int size()
DBIDs
public boolean contains(DBIDRef o)
DBIDs
public boolean isEmpty()
DBIDs
public IntegerDBIDIter iter()
DBIDs
for(DBIDIter iter = ids.iter(); iter.valid(); iter.advance()) {
DBID id = iter.getDBID();
}
iter
in interface DBIDs
iter
in interface IntegerDBIDs
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.