
public class IntegerArrayStaticDBIDs extends AbstractList<DBID> implements ArrayDBIDs
| Modifier and Type | Class and Description |
|---|---|
protected class |
IntegerArrayStaticDBIDs.Itr
Iterator class.
|
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
ids
The actual storage.
|
modCount| Constructor and Description |
|---|
IntegerArrayStaticDBIDs(int... ids)
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) |
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, toStringpublic IntegerArrayStaticDBIDs(int... ids)
ids - Array of ids.public Iterator<DBID> iterator()
DBIDspublic int size()
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 Collection<DBID> asCollection()
DBIDsasCollection in interface DBIDs