Package net.sf.saxon.expr.sort
Class EmptyIntIterator
java.lang.Object
net.sf.saxon.expr.sort.EmptyIntIterator
- All Implemented Interfaces:
IntIterator
An iterator over a zero-length sequence of integers
-
Method Summary
Modifier and TypeMethodDescriptionstatic EmptyIntIterator
Get the singular instance of this classboolean
hasNext()
Test whether there are any more integers in the sequenceint
next()
Return the next integer in the sequence.
-
Method Details
-
getInstance
Get the singular instance of this class- Returns:
- the singular instance
-
hasNext
public boolean hasNext()Test whether there are any more integers in the sequence- Specified by:
hasNext
in interfaceIntIterator
- Returns:
- true if there are more integers to come
-
next
public int next()Return the next integer in the sequence. The result is undefined unless hasNext() has been called and has returned true.- Specified by:
next
in interfaceIntIterator
- Returns:
- the next integer in the sequence
-