Class ReadOnlyListSpliterator<E>

java.lang.Object
org.jhotdraw8.collection.spliterator.AbstractListIteratorSpliterator<E>
org.jhotdraw8.collection.spliterator.ReadOnlyListSpliterator<E>
Type Parameters:
E - the element type
All Implemented Interfaces:
Iterator<E>, ListIterator<E>, Spliterator<E>

public class ReadOnlyListSpliterator<E> extends AbstractListIteratorSpliterator<E>
A ListIterator, and Spliterator for a ReadOnlyList.

Does not perform modification checks.

  • Constructor Details

  • Method Details

    • hasNext

      public boolean hasNext()
    • next

      public E next()
    • hasPrevious

      public boolean hasPrevious()
    • previous

      public E previous()
    • nextIndex

      public int nextIndex()
    • previousIndex

      public int previousIndex()
    • tryAdvance

      public boolean tryAdvance(@Nullable Consumer<? super E> action)
    • trySplit

      public @Nullable Spliterator<E> trySplit()
    • estimateSize

      public long estimateSize()