
class IntegerDBIDRange extends AbstractList<DBID> implements DBIDRange
| Modifier and Type | Class and Description |
|---|---|
protected class |
IntegerDBIDRange.Itr
Iterator class.
|
| Modifier and Type | Field and Description |
|---|---|
protected int |
len
Length value
|
protected int |
start
Start value
|
modCount| Modifier | Constructor and Description |
|---|---|
protected |
IntegerDBIDRange(int start,
int len)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<DBID> |
asCollection()
Retrieve collection access to the IDs
|
boolean |
contains(Object o)
Test whether an ID is contained.
|
DBID |
get(int i) |
int |
getOffset(DBID dbid)
For storage array offsets.
|
Iterator<DBID> |
iterator()
Retrieve Iterator access to the IDs.
|
int |
size()
Retrieve the collection / data size.
|
<T> T[] |
toArray(T[] a) |
add, add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListaddAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitprotected IntegerDBIDRange(int start,
int len)
start - Range startlen - Range lengthpublic int size()
DBIDspublic Iterator<DBID> iterator()
DBIDspublic boolean contains(Object o)
DBIDsCollection.public <T> T[] toArray(T[] a)
toArray in interface Collection<DBID>toArray in interface List<DBID>toArray in class AbstractCollection<DBID>public DBID get(int i)
public int getOffset(DBID dbid)
public Collection<DBID> asCollection()
DBIDsasCollection in interface DBIDs