Package java.util
Class TreeSet
java.lang.Object
java.util.AbstractCollection
java.util.AbstractSet
java.util.TreeSet
- All Implemented Interfaces:
Serializable
,Cloneable
,Collection
,Set
,SortedSet
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
TreeSet
public TreeSet() -
TreeSet
-
TreeSet
-
TreeSet
-
-
Method Details
-
clone
-
comparator
- Specified by:
comparator
in interfaceSortedSet
-
first
-
headSet
-
iterator
- Specified by:
iterator
in interfaceCollection
-
last
-
size
public int size()- Specified by:
size
in interfaceCollection
-
subSet
-
tailSet
-