- All Implemented Interfaces:
public class LazySequence
A sequence that wraps an iterator, without being materialized. If used more than once, the input
iterator is re-evaluated (which can cause problems if the client is dependent on node identity).
|Modifier and Type
||Method and Description
Get the first item in the sequence
Iterate over all the items in the sequence.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public SequenceIterator iterate()
Iterate over all the items in the sequence. The first time this is called it returns the original
iterator backing the sequence. On subsequent calls it clones the original iterator.
- Specified by:
iterate in interface
- an iterator over the items in the sequence
XPathException - if evaluation of the iterator fails.
Copyright (c) 2004-2014 Saxonica Limited. All rights reserved.