protected static class KNNList.DBIDView extends AbstractList<DBID> implements ArrayDBIDs
Modifier and Type | Field and Description |
---|---|
(package private) List<? extends DistanceResultPair<?>> |
parent
The true list.
|
modCount
Constructor and Description |
---|
KNNList.DBIDView(List<? extends DistanceResultPair<?>> parent)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Collection<DBID> |
asCollection()
Retrieve collection access to the IDs
|
DBID |
get(int i) |
Iterator<DBID> |
iterator()
Retrieve Iterator access to the IDs.
|
int |
size()
Retrieve the collection / data size.
|
add, add, addAll, clear, equals, hashCode, indexOf, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
final List<? extends DistanceResultPair<?>> parent
public KNNList.DBIDView(List<? extends DistanceResultPair<?>> parent)
parent
- Ownerpublic DBID get(int i)
public Collection<DBID> asCollection()
DBIDs
asCollection
in interface DBIDs
public Iterator<DBID> iterator()
DBIDs
public int size()
DBIDs