java.util
public class TreeSet<E> extends AbstractSet<E> implements SortedSet<E>, Cloneable, Serializable
| Constructor Summary | |
|---|---|
| TreeSet() | |
| TreeSet(Comparator<E> c) | |
| <T extends E> | TreeSet(Collection<T> c) |
| TreeSet(SortedSet<E> s) | |
| Method Summary | |
|---|---|
| boolean | add(E o) |
| <T extends E> boolean | addAll(Collection<T> c) |
| void | clear() |
| Object | clone() |
| Comparator<E> | comparator() |
| boolean | contains(Object o) |
| E | first() |
| SortedSet<E> | headSet(E toElement) |
| boolean | isEmpty() |
| Iterator<E> | iterator() |
| E | last() |
| boolean | remove(Object o) |
| int | size() |
| SortedSet<E> | subSet(E fromElement, E toElement) |
| SortedSet<E> | tailSet(E fromElement) |