| Modifier and Type | Field and Description |
|---|---|
protected Object |
element |
protected boolean |
hasNext |
| Constructor and Description |
|---|
SingleElementIterator() |
SingleElementIterator(Object element) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
Object |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected boolean hasNext
protected Object element
public SingleElementIterator()
public SingleElementIterator(Object element)
public Object next() throws NoSuchElementException
next in interface IteratorNoSuchElementExceptionpublic void remove()
throws UnsupportedOperationException,
IllegalStateException
remove in interface IteratorUnsupportedOperationExceptionIllegalStateExceptionCopyright © 2017–2019 Eclipse Foundation. All rights reserved.