Package elki.result
Class Metadata.EagerIt<O>
- java.lang.Object
-
- elki.result.Metadata.EagerIt<O>
-
- Type Parameters:
O- Object type
- Direct Known Subclasses:
Metadata.Hierarchy.ItrChildren,Metadata.Hierarchy.ItrChildrenReverse,Metadata.Hierarchy.ItrParents,Metadata.Hierarchy.ItrParentsReverse
- Enclosing class:
- Metadata
private abstract static class Metadata.EagerIt<O> extends java.lang.Object implements It<O>
Base class for iterators that need to look ahead, e.g., to check conditions on the next element.- Author:
- Erich Schubert
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.ObjectcurrentNext object to return.
-
Constructor Summary
Constructors Modifier Constructor Description privateEagerIt()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Oget()Access the current object.booleanvalid()Returns true if the iterator currently points to a valid object.
-
-
-
Method Detail
-
valid
public boolean valid()
Description copied from interface:IterReturns true if the iterator currently points to a valid object.
-
-