Class EmptyIntIterator
java.lang.Object
com.ibm.wala.util.collections.EmptyIntIterator
- All Implemented Interfaces:
IntIterator
A singleton instance of an empty iterator; this is better than Collections.EMPTY_SET.iterator(),
which allocates an iterator object;
-
Method Summary
Modifier and TypeMethodDescriptionbooleanhasNext()static EmptyIntIteratorinstance()intnext()
-
Method Details
-
instance
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIntIterator- Returns:
- true iff this iterator has a next element
-
next
- Specified by:
nextin interfaceIntIterator- Returns:
- next integer in the iteration
- Throws:
NoSuchElementException
-