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, wait
forEachRemaining
public NonNullSingletonIterator(T o)
o
- the single object in this collection, must be non-nullpublic void remove() throws UnsupportedOperationException
remove
in interface Iterator<T>
UnsupportedOperationException
public static <T> NonNullSingletonIterator<T> make(T item)