jdsl.core.ref
Class SequencePosition
java.lang.Object
|
+--jdsl.core.ref.SequencePosition
- public class SequencePosition
- extends java.lang.Object
- implements Position
A wrapper around the Position interface for the Sequence. It also
has methods that relate to the index of the position in
the array
- Author:
- Mark Faktorovich
|
Constructor Summary |
SequencePosition(Container container,
java.lang.Object el,
int index)
Constructor, needs to receive the container that is holding
this position as well as the object that it should hold and
its index |
| Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SequencePosition
public SequencePosition(Container container,
java.lang.Object el,
int index)
- Constructor, needs to receive the container that is holding
this position as well as the object that it should hold and
its index
element
public java.lang.Object element()
throws InvalidPositionException
- Override from Position
- Specified by:
- element in interface Position
- Returns:
- The client element currently stored at this Position
container
public Container container()
throws InvalidPositionException
- Override from Position
- Specified by:
- container in interface Position
- Returns:
- The Container that created, and is holding, this Position