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, subList
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
protected IntegerDBIDRange(int start, int len)
start
- Range startlen
- Range lengthpublic int size()
DBIDs
public Iterator<DBID> iterator()
DBIDs
public boolean contains(Object o)
DBIDs
Collection
.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()
DBIDs
asCollection
in interface DBIDs