Class PositionIterator<T,P extends IPositionHolder<T,P>>

java.lang.Object
com.vladsch.flexmark.experimental.util.collection.iteration.PositionIterator<T,P>
Type Parameters:
T - type of element held by position
P - type of position iterated over
All Implemented Interfaces:
Iterator<P>

class PositionIterator<T,P extends IPositionHolder<T,P>> extends Object implements Iterator<P>
Bidirectional iterator, direction depends on the position anchor NEXT is a forward iterator, PREVIOUS is a reverse iterator
  • Field Details

  • Constructor Details

    • PositionIterator

      public PositionIterator(@NotNull P index)
  • Method Details

    • hasNext

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<T>
    • next

      public P next()
      Specified by:
      next in interface Iterator<T>
    • remove

      public void remove()
      Specified by:
      remove in interface Iterator<T>