public class IntStepIterator extends Object implements IntIterator
Constructor and Description |
---|
IntStepIterator(int start,
int step,
int limit)
Create an iterator over a sequence with regular steps
|
public IntStepIterator(int start, int step, int limit)
start
- the first value to be returnedstep
- the difference between successive values (must be non-zero)limit
- if step>0, the iteration will not deliver any values greater than this limit;
if step<0 the iteration will not deliver any values lower than this limitpublic boolean hasNext()
IntIterator
hasNext
in interface IntIterator
public int next()
IntIterator
next
in interface IntIterator
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.