Package org.wmn4j.notation.access
Interface PositionIterator
- All Superinterfaces:
Iterator<Durational>
Interface for iterating
Durational
objects and retrieving their
positions in a Score
.
Implementations of this interface are not guaranteed to be thread-safe.
-
Method Summary
Modifier and TypeMethodDescriptionReturns the position of theDurational
returned by the last call ofnext
.default void
remove()
Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next
-
Method Details
-
getPositionOfPrevious
Returns the position of theDurational
returned by the last call ofnext
. This method should only be called afternext
has been called.- Returns:
- the position of the previously returned duration notation element
- Throws:
IllegalStateException
- ifnext
has not been called on the iterator
-
remove
default void remove()- Specified by:
remove
in interfaceIterator<Durational>
-