goldman.collection.positional
Interface PositionalCollectionLocator<E>
- All Superinterfaces:
- Cloneable, Iterator<E>, Locator<E>
- All Known Implementing Classes:
- Array.Marker, SinglyLinkedList.Tracker, TrackedArray.Tracker
public interface PositionalCollectionLocator<E>
- extends Locator<E>
The PositionalCollectionLocator
interface
extends the Locator
interface to add methods that are
specific to a positional collection.
Method Summary |
Locator<E> |
addAfter(E value)
Inserts value
immediately after the object referenced by this locator and returns a
fresh locator at the position of insertion. |
int |
getCurrentPosition()
Returns the position within the collection for this
locator. |
addAfter
Locator<E> addAfter(E value)
- Inserts
value
immediately after the object referenced by this locator and returns a
fresh locator at the position of insertion.
getCurrentPosition
int getCurrentPosition()
- Returns the position within the collection for this
locator.