| Constructor and Description |
|---|
SingleObjectIterator(V object)
Constructor.
|
public SingleObjectIterator(V object)
object - The object to iterate over.public boolean hasNext()
next() would return an element rather than
throwing an exception.)public V next()
next in interface Iterator<V>NoSuchElementException - iteration has no more elements.public void remove()
remove in interface Iterator<V>UnsupportedOperationException - always.Copyright © 2017. All rights reserved.