Opus5
Class OrderedListAsArray.MyCursor

java.lang.Object
  |
  +--Opus5.OrderedListAsArray.MyCursor
All Implemented Interfaces:
Cursor
Enclosing class:
OrderedListAsArray

protected class OrderedListAsArray.MyCursor
extends java.lang.Object
implements Cursor

A position in this ordered list.

Version:
$Id: OrderedListAsArray.java,v 3.7 1998/09/20 18:20:57 brpreiss Exp $
Author:
Bruno R. Preiss, P.Eng.

Fields inherited from interface Opus5.Cursor
copyright
 
Method Summary
 Comparable getDatum()
          Returns the object in the ordered list at this position.
 void insertAfter(Comparable object)
          Inserts the specified object in the ordered list after this position.
 void insertBefore(Comparable object)
          Inserts the specified object in the ordered list before this position.
 void withdraw()
          Withdraws the object in the ordered list at this position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDatum

public Comparable getDatum()
Returns the object in the ordered list at this position.
Specified by:
getDatum in interface Cursor
Returns:
The object in the ordered list at this position.

insertAfter

public void insertAfter(Comparable object)
Inserts the specified object in the ordered list after this position.
Specified by:
insertAfter in interface Cursor
Parameters:
The - object to insert.
Throws:
ContainerFullException - If this ordered list is full.

insertBefore

public void insertBefore(Comparable object)
Inserts the specified object in the ordered list before this position.
Specified by:
insertBefore in interface Cursor
Parameters:
The - object to insert.
Throws:
ContainerFullException - If this ordered list is full.

withdraw

public void withdraw()
Withdraws the object in the ordered list at this position.
Specified by:
withdraw in interface Cursor
Throws:
ContainerEmptyException - If the ordered list is empty.