java.io.Serializable
, java.lang.Iterable<K>
, java.util.Collection<K>
, java.util.NavigableSet<K>
, java.util.Set<K>
, java.util.SortedSet<K>
public class STreeSet<K>
extends java.lang.Object
implements java.io.Serializable, java.lang.Iterable<K>, java.util.Collection<K>, java.util.NavigableSet<K>, java.util.Set<K>, java.util.SortedSet<K>
Constructor | Description |
---|---|
STreeSet() |
|
STreeSet(java.util.Comparator<? super K> comp) |
|
STreeSet(java.util.Enumeration<K> E) |
|
STreeSet(java.util.Iterator<K> E) |
|
STreeSet(java.util.List<K> E) |
|
STreeSet(java.util.Set<K> E) |
|
STreeSet(K[] E) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
add(K e) |
|
boolean |
addAll(java.util.Collection<? extends K> c) |
|
void |
addAll(java.util.Enumeration<K> E) |
|
void |
addAll(java.util.Iterator<K> E) |
|
void |
addAll(K[] E) |
|
K |
ceiling(K e) |
|
void |
clear() |
|
java.util.Comparator<? super K> |
comparator() |
|
boolean |
contains(java.lang.Object o) |
|
boolean |
containsAll(java.util.Collection<?> arg0) |
|
STreeSet<K> |
copyOf() |
|
java.util.Iterator<K> |
descendingIterator() |
|
java.util.NavigableSet<K> |
descendingSet() |
|
boolean |
equals(java.lang.Object arg0) |
|
K |
first() |
|
K |
floor(K e) |
|
int |
hashCode() |
|
java.util.SortedSet<K> |
headSet(K toElement) |
|
java.util.NavigableSet<K> |
headSet(K toElement,
boolean inclusive) |
|
K |
higher(K e) |
|
boolean |
isEmpty() |
|
java.util.Iterator<K> |
iterator() |
|
K |
last() |
|
K |
lower(K e) |
|
K |
pollFirst() |
|
K |
pollLast() |
|
boolean |
remove(java.lang.Object o) |
|
boolean |
removeAll(java.util.Collection<?> arg0) |
|
void |
removeAll(java.util.Enumeration<K> E) |
|
void |
removeAll(java.util.Iterator<K> E) |
|
void |
removeAll(java.util.List<K> E) |
|
boolean |
retainAll(java.util.Collection<?> arg0) |
|
int |
size() |
|
java.util.NavigableSet<K> |
subSet(K fromElement,
boolean fromInclusive,
K toElement,
boolean toInclusive) |
|
java.util.SortedSet<K> |
subSet(K fromElement,
K toElement) |
|
java.util.SortedSet<K> |
tailSet(K fromElement) |
|
java.util.NavigableSet<K> |
tailSet(K fromElement,
boolean inclusive) |
|
java.lang.Object[] |
toArray() |
|
<T> T[] |
toArray(T[] arg0) |
|
java.lang.String |
toString() |
|
java.util.TreeSet<K> |
toTreeSet() |
|
java.util.Vector<K> |
toVector() |
public STreeSet()
public STreeSet(java.util.Comparator<? super K> comp)
public STreeSet(java.util.List<K> E)
public STreeSet(K[] E)
public STreeSet(java.util.Enumeration<K> E)
public STreeSet(java.util.Iterator<K> E)
public STreeSet(java.util.Set<K> E)
public void addAll(java.util.Enumeration<K> E)
public void addAll(K[] E)
public void addAll(java.util.Iterator<K> E)
public void removeAll(java.util.Enumeration<K> E)
public void removeAll(java.util.Iterator<K> E)
public void removeAll(java.util.List<K> E)
public java.util.TreeSet<K> toTreeSet()
public java.util.Vector<K> toVector()
public boolean add(K e)
public boolean addAll(java.util.Collection<? extends K> c)
public void clear()
public java.util.Comparator<? super K> comparator()
comparator
in interface java.util.SortedSet<K>
public boolean contains(java.lang.Object o)
public java.util.Iterator<K> descendingIterator()
descendingIterator
in interface java.util.NavigableSet<K>
public java.util.NavigableSet<K> descendingSet()
descendingSet
in interface java.util.NavigableSet<K>
public java.util.NavigableSet<K> headSet(K toElement, boolean inclusive)
headSet
in interface java.util.NavigableSet<K>
public boolean isEmpty()
public java.util.Iterator<K> iterator()
public boolean remove(java.lang.Object o)
public int size()
public java.util.NavigableSet<K> subSet(K fromElement, boolean fromInclusive, K toElement, boolean toInclusive)
subSet
in interface java.util.NavigableSet<K>
public java.util.NavigableSet<K> tailSet(K fromElement, boolean inclusive)
tailSet
in interface java.util.NavigableSet<K>
public boolean equals(java.lang.Object arg0)
public int hashCode()
public boolean removeAll(java.util.Collection<?> arg0)
public boolean containsAll(java.util.Collection<?> arg0)
public boolean retainAll(java.util.Collection<?> arg0)
public java.lang.Object[] toArray()
public <T> T[] toArray(T[] arg0)
public java.lang.String toString()
toString
in class java.lang.Object