java.util
Class TreeSet
java.lang.Object
java.util.AbstractCollection
java.util.AbstractSet
java.util.TreeSet
- All Implemented Interfaces:
- Serializable, Cloneable, Collection, Set, SortedSet
public class TreeSet
- extends AbstractSet
- implements Serializable, Cloneable, SortedSet
- See Also:
- Serialized Form
Methods inherited from class java.util.AbstractCollection |
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
Methods inherited from interface java.util.Collection |
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
TreeSet
public TreeSet()
TreeSet
public TreeSet(Collection var0)
TreeSet
public TreeSet(Comparator var0)
TreeSet
public TreeSet(SortedSet var0)
clone
public Object clone()
- Overrides:
clone
in class Object
comparator
public Comparator comparator()
- Specified by:
comparator
in interface SortedSet
first
public Object first()
- Specified by:
first
in interface SortedSet
headSet
public SortedSet headSet(Object var0)
- Specified by:
headSet
in interface SortedSet
iterator
public Iterator iterator()
- Specified by:
iterator
in interface Collection
last
public Object last()
- Specified by:
last
in interface SortedSet
size
public int size()
- Specified by:
size
in interface Collection
subSet
public SortedSet subSet(Object var0,
Object var1)
- Specified by:
subSet
in interface SortedSet
tailSet
public SortedSet tailSet(Object var0)
- Specified by:
tailSet
in interface SortedSet