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
|
copyright
public static final java.lang.String copyright
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