ObservableTreeSet()
Construct a new TreeSet whose backing TreeMap using the "natural"
ordering of keys.
ObservableTreeSet(java.util.Collection<? extends U> c)
Construct a new TreeSet whose backing TreeMap uses the "natural"
ordering of the keys and which contains all of the elements in the
supplied Collection.
ObservableTreeSet(java.util.Comparator<? super U> comparator)
Construct a new TreeSet whose backing TreeMap uses the supplied
Comparator.
ObservableTreeSet(java.util.SortedSet<? extends U> s)
Construct a new TreeSet, using the same key ordering as the supplied
SortedSet and containing all of the elements in the supplied SortedSet.
Construct a new TreeSet whose backing TreeMap using the "natural"
ordering of keys. Elements that are not mutually comparable will cause
ClassCastExceptions down the road.
See Also:
Comparable
ObservableTreeSet
public ObservableTreeSet(java.util.Collection<? extends U> c)
Construct a new TreeSet whose backing TreeMap uses the "natural"
ordering of the keys and which contains all of the elements in the
supplied Collection. This runs in n*log(n) time.
Parameters:
c - the new Set will be initialized with all
of the elements in this Collection
Throws:
java.lang.ClassCastException - if the elements of the collection are not
comparable
java.lang.NullPointerException - if the collection is null
See Also:
Comparable
ObservableTreeSet
public ObservableTreeSet(java.util.Comparator<? super U> comparator)
Construct a new TreeSet whose backing TreeMap uses the supplied
Comparator. Elements that are not mutually comparable will cause
ClassCastExceptions down the road.
Parameters:
comparator - the Comparator this Set will use
ObservableTreeSet
public ObservableTreeSet(java.util.SortedSet<? extends U> s)
Construct a new TreeSet, using the same key ordering as the supplied
SortedSet and containing all of the elements in the supplied SortedSet.
This constructor runs in linear time.
Parameters:
s - the new TreeSet will use this SortedSet's comparator
and will initialize itself with all its elements
Throws:
java.lang.NullPointerException - if sortedSet is null