Opus5
Interface OrderedList

All Superinterfaces:
Comparable, Container, SearchableContainer
All Known Implementing Classes:
OrderedListAsLinkedList, OrderedListAsArray

public interface OrderedList
extends SearchableContainer

Encapsulates methods common to all ordered lists. An ordered list is a list in which the positions of objects is significant. However, the objects in an ordered list are not necessarily sorted.

Version:
$Id: OrderedList.java,v 3.2 1998/07/29 14:44:13 brpreiss Exp $
Author:
Bruno R. Preiss, P.Eng.
See Also:
SortedList

Field Summary
static java.lang.String copyright
           
 
Method Summary
 Cursor findPosition(Comparable object)
          Returns the position in this list of the specified object.
 Comparable get(int i)
          Returns the object found at the specified position in this list.
 
Methods inherited from interface Opus5.SearchableContainer
find, insert, isMember, withdraw
 
Methods inherited from interface Opus5.Container
accept, getCount, getEnumeration, isEmpty, isFull, purge
 
Methods inherited from interface Opus5.Comparable
compare, isEQ, isGE, isGT, isLE, isLT, isNE
 

Field Detail

copyright

public static final java.lang.String copyright
Method Detail

get

public Comparable get(int i)
Returns the object found at the specified position in this list.
Parameters:
i - The position of the object in this list.
Returns:
The object in this list at the specified position.

findPosition

public Cursor findPosition(Comparable object)
Returns the position in this list of the specified object.
Parameters:
object - The object the position of which is to be found.
Returns:
A cursor that represents the position of the object.
See Also:
Cursor