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 theDurationalreturned by the last call ofnext.default voidremove()Methods inherited from interface java.util.Iterator
forEachRemaining, hasNext, next
-
Method Details
-
getPositionOfPrevious
Returns the position of theDurationalreturned by the last call ofnext. This method should only be called afternexthas been called.- Returns:
- the position of the previously returned duration notation element
- Throws:
IllegalStateException- ifnexthas not been called on the iterator
-
remove
default void remove()- Specified by:
removein interfaceIterator<Durational>
-