public static class IntArraySet.IntArrayIterator extends java.lang.Object implements IntIterator
Constructor and Description |
---|
IntArrayIterator(int[] contents,
int limit)
Create an iterator over the integers in an array (in positions 0 to n-1
inclusive, were n is the value of the limit argument)
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Test whether there are any more integers in the sequence
|
int |
next()
Return the next integer in the sequence.
|
public IntArrayIterator(int[] contents, int limit)
contents
- the array over which to iteratelimit
- the number of items to be included in the iterationpublic boolean hasNext()
IntIterator
hasNext
in interface IntIterator
public int next()
IntIterator
next
in interface IntIterator
Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.