All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jdsl.simple.ref.NodeRankedSequence

java.lang.Object
   |
   +----jdsl.simple.ref.MyDeque
           |
           +----jdsl.simple.ref.NodeRankedSequence

public class NodeRankedSequence
extends MyDeque
implements Deque, RankedSequence
This is the implementation of the RankedSequence interface by means of a doubly-linked list. Note that this class extends class Deque and uses class DLNode, which is the node that stores the previos and next nodes in the list, and a reference to its element.


Constructor Index

 o NodeRankedSequence()

Method Index

 o elemAtRank(int)
 o insertElemAtRank(int, Object)
 o removeElemAtRank(int)
 o replaceElemAtRank(int, Object)

Constructors

 o NodeRankedSequence
 public NodeRankedSequence()

Methods

 o elemAtRank
 public Object elemAtRank(int rank)
 o replaceElemAtRank
 public Object replaceElemAtRank(int rank,
                                 Object newElement) throws BoundaryViolationException
 o insertElemAtRank
 public void insertElemAtRank(int rank,
                              Object element) throws BoundaryViolationException
 o removeElemAtRank
 public Object removeElemAtRank(int rank) throws BoundaryViolationException

All Packages  Class Hierarchy  This Package  Previous  Next  Index