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 positionP
- type of position iterated over
- All Implemented Interfaces:
java.util.Iterator<P>
class PositionIterator<T,P extends IPositionHolder<T,P>> extends java.lang.Object implements java.util.Iterator<P>
Bidirectional iterator, direction depends on the position anchor NEXT is a forward iterator, PREVIOUS is a reverse iterator
-
-
Constructor Summary
Constructors Constructor Description PositionIterator(P index)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasNext()
P
next()
void
remove()
-
-
-
Field Detail
-
myIndex
@Nullable private P extends IPositionHolder<T,P> myIndex
-
myNext
@Nullable private P extends IPositionHolder<T,P> myNext
-
-
Constructor Detail
-
PositionIterator
public PositionIterator(@NotNull P index)
-
-