Opus5
Interface SortedList
- All Superinterfaces:
- Comparable, Container, SearchableContainer
- All Known Implementing Classes:
- SortedListAsLinkedList, SortedListAsArray
- public interface SortedList
- extends SearchableContainer
Encapsulates methods common to all sorted lists.
A sorted list is a list in which the positions of objects is significant.
The objects in a sorted list are ordered from "smallest" to "largest".
- Version:
- $Id: SortedList.java,v 3.2 1998/07/29 14:50:08 brpreiss Exp $
- Author:
- Bruno R. Preiss, P.Eng.
- See Also:
OrderedList
|
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:
- The position of the object.
- See Also:
Cursor