
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, subListaddAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringfinal List<? extends DistanceResultPair<?>> parent
public KNNList.DBIDView(List<? extends DistanceResultPair<?>> parent)
parent - Ownerpublic DBID get(int i)
public Collection<DBID> asCollection()
DBIDsasCollection in interface DBIDspublic Iterator<DBID> iterator()
DBIDspublic int size()
DBIDs