Package net.sf.saxon.z
Class IntSingletonIterator
- java.lang.Object
-
- net.sf.saxon.z.IntSingletonIterator
-
- All Implemented Interfaces:
IntIterator
public class IntSingletonIterator extends java.lang.Object implements IntIterator
An iterator over a single integer
-
-
Constructor Summary
Constructors Constructor Description IntSingletonIterator(int value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Test whether there are any more integers in the sequenceintnext()Return the next integer in the sequence.
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
Description copied from interface:IntIteratorTest whether there are any more integers in the sequence- Specified by:
hasNextin interfaceIntIterator- Returns:
- true if there are more integers to come
-
next
public int next()
Description copied from interface:IntIteratorReturn the next integer in the sequence. The result is undefined unless hasNext() has been called and has returned true.- Specified by:
nextin interfaceIntIterator- Returns:
- the next integer in the sequence
-
-