Package net.sf.saxon.z
Class IntSingletonIterator
java.lang.Object
net.sf.saxon.z.IntSingletonIterator
- All Implemented Interfaces:
IntIterator
An iterator over a single integer
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
gone
boolean gone
-
-
Constructor Details
-
IntSingletonIterator
public IntSingletonIterator(int value)
-
-
Method Details
-
hasNext
public boolean hasNext()Description copied from interface:IntIterator
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()Description copied from interface:IntIterator
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
-