public class SingletonIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>
| Constructor and Description |
|---|
SingletonIterator(T value)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> SingletonIterator<T> |
create(T value) |
boolean |
hasNext() |
T |
next() |
void |
remove() |
private final T _value
private boolean _done
@Deprecated public SingletonIterator(T value)
public static <T> SingletonIterator<T> create(T value)
public boolean hasNext()
hasNext in interface java.util.Iterator<T>public void remove()
remove in interface java.util.Iterator<T>