A C G I R S T
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- add(T) - Method in interface SortedList
-
Adds item to the list in sorted order.
C
- clear() - Method in interface SortedList
-
Removes all items from the list.
- contains(T) - Method in interface SortedList
-
Returns true if the list contains the target item.
G
- get(int) - Method in interface SortedList
-
Returns the item at a given index.
- getPosition(T) - Method in interface SortedList
-
Returns the first position of targetItem in the list.
I
- isEmpty() - Method in interface SortedList
-
Returns true if the list has no items stored in it.
- iterator() - Method in interface SortedList
-
Returns an iterator that begins just before index 0 in this list.
R
- remove(int) - Method in interface SortedList
-
Remove the item at index position from the list, shifting everything after it up one position.
- remove(T) - Method in interface SortedList
-
Remove the first occurence of targetItem from the list, shifting everything after it up one position.
- resort(Comparator<T>) - Method in interface SortedList
-
Re-sorts the list according to the given comparator.
S
- size() - Method in interface SortedList
-
Returns the length of the list: the number of items stored in it.
- SortedList<T> - Interface in <Unnamed>
-
SortedList interface adapted from Carrano and Henry's interface in Data Structures and Abstractions with Java.
T
- toArray() - Method in interface SortedList
-
Returns an array version of the list.
All Classes All Packages