Class EmptyIterator<O>
- java.lang.Object
-
- elki.utilities.datastructures.iterator.EmptyIterator<O>
-
-
Constructor Summary
Constructors Modifier Constructor Description privateEmptyIterator()Private constructor, use staticempty()instead.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description It<O>advance()Moves the iterator forward to the next entry.static <O> It<O>empty()Get an empty hierarchy iterator.<T> It<T>filter(java.lang.Class<? super T> clz)Filtered iteration.It<O>filter(java.util.function.Predicate<? super O> predicate)Filtered iteration.voidforEach(java.util.function.Consumer<? super O> action)Process the remaining elements - this will invalidate the iterator.Oget()Access the current object.booleanvalid()Returns true if the iterator currently points to a valid object.
-
-
-
Field Detail
-
STATIC
private static final It<java.lang.Object> STATIC
Static instance.
-
-
Constructor Detail
-
EmptyIterator
private EmptyIterator()
Private constructor, use staticempty()instead.
-
-
Method Detail
-
empty
public static <O> It<O> empty()
Get an empty hierarchy iterator.- Returns:
- Empty iterator
-
valid
public boolean valid()
Description copied from interface:IterReturns true if the iterator currently points to a valid object.
-
advance
public It<O> advance()
Description copied from interface:IterMoves the iterator forward to the next entry.
-
filter
public <T> It<T> filter(java.lang.Class<? super T> clz)
Description copied from interface:ItFiltered iteration.Important: using the filtered iterator will also advance this iterator; so usually you should stop using the original iterator after calling this method.
-
filter
public It<O> filter(java.util.function.Predicate<? super O> predicate)
Description copied from interface:ItFiltered iteration.Important: using the filtered iterator will also advance this iterator; so usually you should stop using the original iterator after calling this method.
-
-