net.sf.saxon.sort
public class TerminatedIntIterator extends Object implements IntIterator
This data structure is generally used for a sequence of namespace codes.
| Field Summary | |
|---|---|
| int | index |
| int | terminator |
| int[] | values |
| Constructor Summary | |
|---|---|
| TerminatedIntIterator(int[] values)
Construct an iterator over a sequence of integers held in an array, with
the value -1 acting as the terminator | |
| TerminatedIntIterator(int[] values, int terminator)
Construct an iterator over a sequence of integers held in an array, with
a specified value acting as the terminator | |
| Method Summary | |
|---|---|
| boolean | hasNext()
Test whether there are any more integers in the sequence |
| int | next()
Return the next integer in the sequence. |
Parameters: values the sequence of integers
Parameters: values the sequence of integers terminator the terminator value