public abstract class RangeIterator extends java.lang.Object implements GroundedIterator
As well as being able to deliver a sequence of integers, these iterators also allow testing the length of the sequence returned, for the existence of a particular value, for the minimum and maximum values, for the first and last values, and for the Nth value.
Constructor and Description |
---|
RangeIterator() |
Modifier and Type | Method and Description |
---|---|
boolean |
containsEq(NumericValue val)
Ask whether the iterator will deliver a value equal to a supplied value
|
abstract IntegerValue |
getFirst() |
abstract IntegerValue |
getLast() |
abstract IntegerValue |
getMax() |
abstract IntegerValue |
getMin() |
abstract GroundedValue |
getResidue()
Return a GroundedValue containing all the remaining items in the sequence returned by this
SequenceIterator, starting at the current position.
|
abstract IntegerValue |
getStep()
Get the increment between successive values.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isActuallyGrounded, materialize
close, discharge, next
public abstract GroundedValue getResidue()
getResidue
in interface GroundedIterator
UncheckedXPathException
- in the cases of subclasses (such as the iterator over a MemoClosure)
which cause evaluation of expressions while materializing the value.public abstract IntegerValue getFirst()
public abstract IntegerValue getLast()
public abstract IntegerValue getMin()
public abstract IntegerValue getMax()
public abstract IntegerValue getStep()
public boolean containsEq(NumericValue val)
val
- the supplied valueCopyright (c) 2004-2022 Saxonica Limited. All rights reserved.