public interface UnfailingIterator extends SequenceIterator
SequenceIterator.Property| Modifier and Type | Method and Description |
|---|---|
default void |
forEach(java.util.function.Consumer<? super Item> consumer)
Process all the items returned by the iterator, supplying them to a given
Consumer. |
Item |
next()
Get the next item in the sequence.
|
default java.util.List<Item> |
toList()
Create a list containing all the items returned by the iterator.
|
close, forEachOrFail, getProperties, materializeItem next()
next in interface SequenceIteratordefault void forEach(java.util.function.Consumer<? super Item> consumer)
Consumer.
Note that this method throws no exceptions. This method consumes the iterator.consumer - the function that is to consume each of the (remaining) items returned by
the iteratordefault java.util.List<Item> toList()
Copyright (c) 2004-2021 Saxonica Limited. All rights reserved.