java.util.Iterator<T>
public class SingleIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
SingleIterator
is an Iterator
over a single object
instance.
Constructor | Description |
---|---|
SingleIterator(T object) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
hasNext() |
|
T |
next() |
|
void |
remove() |
public SingleIterator(T object)