Class AscendingRangeIterator

java.lang.Object
net.sf.saxon.tree.iter.RangeIterator
net.sf.saxon.expr.AscendingRangeIterator
All Implemented Interfaces:
Closeable, AutoCloseable, LastPositionFinder, SequenceIterator, AtomicIterator, GroundedIterator, LookaheadIterator, ReversibleIterator

public class AscendingRangeIterator extends RangeIterator implements AtomicIterator, ReversibleIterator, LastPositionFinder, LookaheadIterator, GroundedIterator
An Iterator that produces numeric values in a monotonic sequence, ascending or descending. Applying the reverse() function will produce a DescendingRangeIterator.
  • Constructor Details

    • AscendingRangeIterator

      public AscendingRangeIterator(long start, long step, long end)
      Create an iterator over a range of monotonically increasing integers
      Parameters:
      start - the first integer in the sequence
      step - the increment; must be GT 0
      end - the last integer in the sequence. Must be GE start.
  • Method Details