public interface Iter
Iterator
interface has some drawbacks:
for (Iter iter = ids.iter(); iter.valid(); iter.advance()) {
iter.doSomething();
}
Modifier and Type | Method and Description |
---|---|
Iter |
advance()
Moves the iterator forward to the next entry.
|
boolean |
valid()
Returns true if the iterator currently points to a valid object.
|
boolean valid()
boolean
value, whether the position is valid.Iter advance()
Copyright © 2015 ELKI Development Team, Lehr- und Forschungseinheit für Datenbanksysteme, Ludwig-Maximilians-Universität München. License information.