
class IntegerDBID extends AbstractList<DBID> implements DBID
long, it should not require
changes in too many places!)
In particular, a developer should not make any assumption of these IDs being
consistent across multiple results/databases.| Modifier and Type | Class and Description |
|---|---|
static class |
IntegerDBID.DynamicSerializer
Dynamic sized serializer, using varint.
|
protected class |
IntegerDBID.Itr
Pseudo iterator for DBIDs interface.
|
static class |
IntegerDBID.StaticSerializer
Static sized serializer, using regular integers.
|
| Modifier and Type | Field and Description |
|---|---|
static IntegerDBID.DynamicSerializer |
dynamicSerializer
The public instance to use for dynamic serialization.
|
protected int |
id
The actual object ID.
|
static IntegerDBID.StaticSerializer |
staticSerializer
The public instance to use for static serialization.
|
modCount| Modifier | Constructor and Description |
|---|---|
protected |
IntegerDBID(int id)
Constructor from integer id.
|
protected |
IntegerDBID(Integer id)
Constructor from integer id.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<DBID> |
asCollection()
Retrieve collection access to the IDs
|
int |
compareTo(DBID o) |
boolean |
contains(Object o)
Test whether an ID is contained.
|
boolean |
equals(Object obj) |
DBID |
get(int i) |
int |
getIntegerID()
Return the integer value of the object ID.
|
int |
hashCode() |
boolean |
isEmpty()
Test for an empty DBID collection.
|
Iterator<DBID> |
iterator()
Retrieve Iterator access to the IDs.
|
int |
size()
Retrieve the collection / data size.
|
String |
toString() |
add, add, addAll, clear, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, containsAll, remove, removeAll, retainAll, toArray, toArrayclone, finalize, getClass, notify, notifyAll, wait, wait, waitadd, add, addAll, addAll, clear, containsAll, indexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArrayprotected final int id
public static final IntegerDBID.DynamicSerializer dynamicSerializer
public static final IntegerDBID.StaticSerializer staticSerializer
protected IntegerDBID(int id)
id - integer id.protected IntegerDBID(Integer id)
id - integer id.public int getIntegerID()
getIntegerID in interface DBIDpublic String toString()
toString in class AbstractCollection<DBID>public int hashCode()
hashCode in interface Collection<DBID>hashCode in interface List<DBID>hashCode in class AbstractList<DBID>public boolean equals(Object obj)
equals in interface Collection<DBID>equals in interface List<DBID>equals in class AbstractList<DBID>public int compareTo(DBID o)
compareTo in interface Comparable<DBID>public Collection<DBID> asCollection()
DBIDsasCollection in interface DBIDspublic boolean contains(Object o)
DBIDsCollection.public Iterator<DBID> iterator()
DBIDspublic int size()
DBIDspublic boolean isEmpty()
DBIDs