| Constructor and Description |
|---|
NonNullSingletonIterator(T o) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
static <T> NonNullSingletonIterator<T> |
make(T item) |
T |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic NonNullSingletonIterator(T o)
o - the single object in this collection, must be non-nullpublic void remove()
throws UnsupportedOperationException
remove in interface Iterator<T>UnsupportedOperationExceptionpublic static <T> NonNullSingletonIterator<T> make(T item)