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, subList
addAll, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toString
public IntegerArrayStaticDBIDs(int... ids)
ids
- Array of ids.public Iterator<DBID> iterator()
DBIDs
public int size()
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 Collection<DBID> asCollection()
DBIDs
asCollection
in interface DBIDs