public class SortedList<T>
extends java.util.AbstractList<T>
Constructor and Description |
---|
SortedList(java.util.Comparator<T> comparator) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
T element) |
boolean |
add(T t) |
void |
clear() |
T |
get(int index) |
java.util.Comparator<T> |
getComparator() |
boolean |
isEmpty() |
T |
remove(int index) |
boolean |
remove(java.lang.Object value) |
int |
size() |
addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, set, subList
addAll, contains, containsAll, removeAll, retainAll, toArray, toArray, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public SortedList(java.util.Comparator<T> comparator)
public java.util.Comparator<T> getComparator()
public void add(int index, T element)
public boolean add(T t)
public T remove(int index)
public boolean remove(java.lang.Object value)
public T get(int index)
public void clear()
public boolean isEmpty()