public class TreeSet extends AbstractSet implements SortedSet, Cloneable, Serializable
| Constructor and Description |
|---|
TreeSet() |
TreeSet(Collection var0) |
TreeSet(Comparator var0) |
TreeSet(SortedSet var0) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Object var0) |
boolean |
addAll(Collection var0) |
void |
clear() |
Object |
clone() |
Comparator |
comparator() |
boolean |
contains(Object var0) |
Object |
first() |
SortedSet |
headSet(Object var0) |
boolean |
isEmpty() |
Iterator |
iterator() |
Object |
last() |
boolean |
remove(Object var0) |
int |
size() |
SortedSet |
subSet(Object var0,
Object var1) |
SortedSet |
tailSet(Object var0) |
equals, hashCode, removeAllcontainsAll, retainAll, toArray, toArray, toStringpublic TreeSet()
public TreeSet(Collection var0)
public TreeSet(Comparator var0)
public TreeSet(SortedSet var0)
public boolean add(Object var0)
add in interface Collectionadd in interface Setadd in class AbstractCollectionpublic boolean addAll(Collection var0)
addAll in interface CollectionaddAll in interface SetaddAll in class AbstractCollectionpublic void clear()
clear in interface Collectionclear in interface Setclear in class AbstractCollectionpublic Comparator comparator()
comparator in interface SortedSetpublic boolean contains(Object var0)
contains in interface Collectioncontains in interface Setcontains in class AbstractCollectionpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface SetisEmpty in class AbstractCollectionpublic Iterator iterator()
iterator in interface Collectioniterator in interface Setiterator in class AbstractCollectionpublic boolean remove(Object var0)
remove in interface Collectionremove in interface Setremove in class AbstractCollectionpublic int size()
size in interface Collectionsize in interface Setsize in class AbstractCollection