|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<DBID>
de.lmu.ifi.dbs.elki.database.ids.integer.IntegerDBIDRange
class IntegerDBIDRange

Representing a DBID range allocation
| Nested Class Summary | |
|---|---|
protected class |
IntegerDBIDRange.Itr
Iterator class. |
| Field Summary | |
|---|---|
protected int |
len
Length value |
protected int |
start
Start value |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
protected |
IntegerDBIDRange(int start,
int len)
Constructor. |
| Method Summary | ||
|---|---|---|
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. |
|
|
toArray(T[] a)
|
|
| Methods inherited from class java.util.AbstractList |
|---|
add, add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
add, add, addAll, addAll, clear, containsAll, equals, hashCode, indexOf, isEmpty, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray |
| Methods inherited from interface de.lmu.ifi.dbs.elki.database.ids.DBIDs |
|---|
isEmpty |
| Field Detail |
|---|
protected final int start
protected final int len
| Constructor Detail |
|---|
protected IntegerDBIDRange(int start,
int len)
start - Range startlen - Range length| Method Detail |
|---|
public int size()
DBIDs
size in interface DBIDssize in interface Collection<DBID>size in interface List<DBID>size in class AbstractCollection<DBID>public Iterator<DBID> iterator()
DBIDs
iterator in interface DBIDsiterator in interface Iterable<DBID>iterator in interface Collection<DBID>iterator in interface List<DBID>iterator in class AbstractList<DBID>public boolean contains(Object o)
DBIDsCollection.
contains in interface DBIDscontains in interface Collection<DBID>contains in interface List<DBID>contains in class AbstractCollection<DBID>o - object to test
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)
get in interface List<DBID>get in class AbstractList<DBID>public int getOffset(DBID dbid)
getOffset in interface DBIDRangedbid -
public Collection<DBID> asCollection()
DBIDs
asCollection in interface DBIDs
|
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||