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.Object
current
Next object to return.
-
Constructor Summary
Constructors Modifier Constructor Description private
EagerIt()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description O
get()
Access the current object.boolean
valid()
Returns true if the iterator currently points to a valid object.
-
-
-
Method Detail
-
valid
public boolean valid()
Description copied from interface:Iter
Returns true if the iterator currently points to a valid object.
-
-