Package elki.database.relation
Class RelationUtil.CollectionFromRelation<O>
- java.lang.Object
-
- java.util.AbstractCollection<O>
-
- elki.database.relation.RelationUtil.CollectionFromRelation<O>
-
- All Implemented Interfaces:
java.lang.Iterable<O>
,java.util.Collection<O>
- Enclosing class:
- RelationUtil
public static class RelationUtil.CollectionFromRelation<O> extends java.util.AbstractCollection<O> implements java.util.Collection<O>
Collection view on a database that retrieves the objects when needed.- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Constructor Description CollectionFromRelation(Relation<? extends O> db)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Iterator<O>
iterator()
int
size()
-
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
iterator
public java.util.Iterator<O> iterator()
-
-