java.util.Iteratorpublic class EmptyIterator
extends java.lang.Object
implements java.util.Iterator
| Modifier and Type | Field | Description |
|---|---|---|
static EmptyIterator |
instance |
| Modifier and Type | Method | Description |
|---|---|---|
static EmptyIterator |
getInstance() |
|
boolean |
hasNext() |
|
java.lang.Object |
next() |
|
void |
remove() |
public static final EmptyIterator instance
public static EmptyIterator getInstance()
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
throws java.util.NoSuchElementException
next in interface java.util.Iteratorjava.util.NoSuchElementExceptionpublic void remove()
remove in interface java.util.IteratorCopyright © 2018 Oracle Corporation. All rights reserved.