Class ListOfUnknownSize.Iterator

java.lang.Object
org.apache.sis.internal.util.ListOfUnknownSize.Iterator
All Implemented Interfaces:
Iterator<E>, ListIterator<E>
Enclosing class:
ListOfUnknownSize<E>

private final class ListOfUnknownSize.Iterator extends Object implements ListIterator<E>
The iterator returned by AbstractList.listIterator(). Provided as a named class instead than anonymous class for more readable stack traces. This is especially useful since elements may be loaded or computed when first needed, and those operations may fail.
  • Field Details

    • cursor

      private int cursor
      Index of the next element to be returned.
  • Constructor Details

    • Iterator

      Iterator(int index)
      Creates a new iterator starting at the given index.
  • Method Details