Constructor and Description |
---|
SingleObjectIterator()
Ctor for an iterator starting out empty.
|
SingleObjectIterator(T object)
Constructor, takes the single object to iterate over as a parameter.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
T |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public SingleObjectIterator(T object)
object
- single object that the iterator returns, or null for an empty iteratorpublic SingleObjectIterator()