|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.sort.TerminatedIntIterator
public class TerminatedIntIterator
An iterator over a sequence of integers held in an array. The array may either be exactly the right size, or may be terminated by an end-of-sequence value.
This data structure is generally used for a sequence of namespace codes.
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TerminatedIntIterator(int[] values)
values
- the sequence of integerspublic TerminatedIntIterator(int[] values, int terminator)
values
- the sequence of integersterminator
- the terminator valueMethod Detail |
---|
public boolean hasNext()
hasNext
in interface IntIterator
public int next()
next
in interface IntIterator
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |