All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jdsl.core.ref.SequencePosition

java.lang.Object
   |
   +----jdsl.core.ref.SequencePosition

public class SequencePosition
extends 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


Constructor Index

 o SequencePosition(Container, Object, int)
Constructor, needs to receive the container that is holding this position as well as the object that it should hold and its index

Method Index

 o container()
Override from Position
 o element()
Override from Position

Constructors

 o SequencePosition
 public SequencePosition(Container container,
                         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

 o element
 public Object element() throws InvalidPositionException
Override from Position

Returns:
The client element currently stored at this Position

 o container
 public Container container() throws InvalidPositionException
Override from Position

Returns:
The Container that created, and is holding, this Position


All Packages  Class Hierarchy  This Package  Previous  Next  Index