Interface UnfailingIterator<T extends Item<?>>

All Superinterfaces:
AutoCloseable, Closeable, SequenceIterator<T>
All Known Subinterfaces:
AtomicIterator, AxisIterator
All Known Implementing Classes:
AncestorEnumeration, AncestorIterator, ArrayIterator, ArrayIterator.OfNodes, AttributeEnumeration, AttributeIterator, BigRangeIterator, ChildEnumeration, ConcatenatingAxisIterator, DescendantIterator, DescendantIteratorSansText, EmptyIterator, EmptyIterator.OfAtomic, EmptyIterator.OfNodes, FollowingEnumeration, FollowingIterator, FollowingSiblingEnumeration, GraftingDescendantIterator, ListIterator, ListIterator.Atomic, ListIterator.OfNodes, ManualIterator, NamedChildIterator, Navigator.AncestorEnumeration, Navigator.AxisFilter, Navigator.DescendantEnumeration, Navigator.EmptyTextFilter, Navigator.FollowingEnumeration, Navigator.PrecedingEnumeration, NodeWrappingAxisIterator, PrecedingEnumeration, PrecedingIterator, PrecedingOrAncestorEnumeration, PrecedingSiblingEnumeration, PrecedingSiblingIterator, PrependAxisIterator, RangeIterator, ReverseListIterator, ReverseRangeIterator, SiblingIterator, SingleAtomicIterator, SingleNodeIterator, SingletonIterator, SteppingNavigator.DescendantAxisIterator, StringValue.CharacterIterator, StringValue.UnicodeCharacterIterator, TreeEnumeration, VirtualCopy.VirtualCopier, Whitespace.Tokenizer, WrappingIterator

public interface UnfailingIterator<T extends Item<?>> extends SequenceIterator<T>
A SequenceIterator is used to iterate over a sequence. An UnfailingIterator is a SequenceIterator that throws no checked exceptions.
  • Method Details

    • next

      T next()
      Get the next item in the sequence.
      Specified by:
      next in interface SequenceIterator<T extends Item<?>>
      Returns:
      the next Item. If there are no more items, return null.
    • forEach

      default void forEach(Consumer<T> consumer)
    • firstWith

      default Optional<T> firstWith(Predicate<? super T> condition)
    • toList

      default List<T> toList()
    • toGroundedValue

      default GroundedValue<T> toGroundedValue()