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 TypeMethodDescriptionboolean
hasNext()
static EmptyIntIterator
instance()
int
next()
-
Method Details
-
instance
-
hasNext
public boolean hasNext()- Specified by:
hasNext
in interfaceIntIterator
- Returns:
- true iff this iterator has a next element
-
next
- Specified by:
next
in interfaceIntIterator
- Returns:
- next integer in the iteration
- Throws:
NoSuchElementException
-