java.lang.Object
com.ibm.j9ddr.corereaders.tdump.zebedee.util.NullIterator
- All Implemented Interfaces:
Iterator
This class provides an empty iterator with no elements.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
hasNext()
Returnstrue
if the iteration has more elements.static NullIterator
instance()
Returns a global instance of the NullIterator.next()
Returns the next element in the iteration.Methods declared in class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods declared in interface java.util.Iterator
forEachRemaining, remove
-
Constructor Details
-
NullIterator
public NullIterator()Create a new NullIterator.
-
-
Method Details
-
instance
Returns a global instance of the NullIterator. -
hasNext
public boolean hasNext()Description copied from interface:java.util.Iterator
Returnstrue
if the iteration has more elements. (In other words, returnstrue
ifIterator.next()
would return an element rather than throwing an exception.) -
next
Description copied from interface:java.util.Iterator
Returns the next element in the iteration.
-