E - The type of the iterated value.public final class SingletonIterator<E> extends AbstractBaseIterator<E>
| Constructor and Description |
|---|
SingletonIterator(E value)
Creates an
Iterator that iterates (only) the given value. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
E |
next() |
equals, hashCode, remove