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 TypeMethodDescriptionbooleanhasNext()Returnstrueif the iteration has more elements.static NullIteratorinstance()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, waitMethods 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.IteratorReturnstrueif the iteration has more elements. (In other words, returnstrueifIterator.next()would return an element rather than throwing an exception.) -
next
Description copied from interface:java.util.IteratorReturns the next element in the iteration.
-