Modifier and Type | Field and Description |
---|---|
private static EmptyIterator |
INSTANCE |
Constructor and Description |
---|
EmptyIterator()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
static <E> Iterator<E> |
getInstance()
This method gets the singleton instance of this empty iterator.
|
boolean |
hasNext() |
Object |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
private static final EmptyIterator INSTANCE
public static <E> Iterator<E> getInstance()
E
- is the type of the element to iterate.Copyright © 2001–2016 mmm-Team. All rights reserved.