
O - Object typepublic class FilteredIter<O> extends Object implements Hierarchy.Iter<O>
| Modifier and Type | Field and Description |
|---|---|
(package private) Object |
current
Current object, if valid.
|
(package private) Class<? super O> |
filter
Class filter.
|
private Hierarchy.Iter<?> |
it
Iterator in primary hierarchy.
|
| Constructor and Description |
|---|
FilteredIter(Hierarchy.Iter<?> it,
Class<? super O> clazz)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
FilteredIter<O> |
advance()
Moves the iterator forward to the next entry.
|
O |
get()
Access the current object.
|
private void |
next()
Java iterator style, because we need to "peek" the next element.
|
boolean |
valid()
Returns true if the iterator currently points to a valid object.
|
Object current
private Hierarchy.Iter<?> it
public FilteredIter(Hierarchy.Iter<?> it, Class<? super O> clazz)
it - Iterator in primary hierarchyclazz - Class filterpublic O get()
Hierarchy.Iterget in interface Hierarchy.Iter<O>public boolean valid()
Iterpublic FilteredIter<O> advance()
Iteradvance in interface Hierarchy.Iter<O>advance in interface Iterprivate void next()
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.