Class IterableIt<O>
- java.lang.Object
-
- elki.utilities.datastructures.iterator.IterableIt<O>
-
- Type Parameters:
O- contained object type.
public class IterableIt<O> extends java.lang.Object implements It<O>
ELKI style Iterator wrapper for collections.Note: for collections implementing
RandomAccess, always useArrayListIterinstead (less wrapping)!- Since:
- 0.7.5
- Author:
- Erich Schubert
-
-
Constructor Summary
Constructors Constructor Description IterableIt(java.lang.Iterable<O> data)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description It<O>advance()Moves the iterator forward to the next entry.Oget()Access the current object.booleanvalid()Returns true if the iterator currently points to a valid object.
-
-
-
Field Detail
-
inner
final java.util.Iterator<O> inner
The proxied iterator.
-
cur
java.lang.Object cur
Current object.
-
END_VALUE
private static final java.lang.Object END_VALUE
End sentinel value.
-
-
Constructor Detail
-
IterableIt
public IterableIt(java.lang.Iterable<O> data)
Constructor.- Parameters:
data- Data array.
-
-