O
- Object type.public interface It<O> extends Iter
Modifier and Type | Method and Description |
---|---|
It<O> |
advance()
Moves the iterator forward to the next entry.
|
default <T> It<T> |
filter(java.lang.Class<? super T> clz)
Filtered iteration.
|
default It<O> |
filter(java.util.function.Predicate<? super O> predicate)
Filtered iteration.
|
default boolean |
find(java.lang.Object o)
Find a given object in the iterator; consumes the iterator.
|
default void |
forEach(java.util.function.Consumer<? super O> action)
Process the remaining elements - this will invalidate the iterator.
|
O |
get()
Access the current object.
|
O get()
It<O> advance()
Iter
default <T> It<T> filter(java.lang.Class<? super T> clz)
clz
- Class filterdefault It<O> filter(java.util.function.Predicate<? super O> predicate)
predicate
- Testdefault boolean find(java.lang.Object o)
o
- Object to findtrue
if founddefault void forEach(java.util.function.Consumer<? super O> action)
action
- Action to performCopyright © 2019 ELKI Development Team. License information.