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