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 © 2019 ELKI Development Team. License information.