Class TTreeSet<E>
java.lang.Object
org.teavm.classlib.java.lang.TObject
org.teavm.classlib.java.util.TAbstractCollection<E>
org.teavm.classlib.java.util.TAbstractSet<E>
org.teavm.classlib.java.util.TTreeSet<E>
- Type Parameters:
E-
- All Implemented Interfaces:
TCloneable, TIterable<E>, TCollection<E>, TNavigableSet<E>, TSequencedCollection<E>, TSequencedSet<E>, TSet<E>, TSortedSet<E>
-
Constructor Summary
ConstructorsConstructorDescriptionTTreeSet()TTreeSet(TCollection<? extends E> coll) TTreeSet(TComparator<? super E> comparator) TTreeSet(TSortedSet<E> s) -
Method Summary
Methods inherited from class TAbstractSet
equals, hashCode, removeAllMethods inherited from class TAbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toStringMethods inherited from class TObject
equals0, finalize, getClass0, notify0, notifyAll0, wait0, wait0Methods inherited from interface TCollection
addAll, containsAll, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArrayMethods inherited from interface TNavigableSet
removeFirst, removeLast, reversedMethods inherited from interface TSequencedCollection
addFirst, addLastMethods inherited from interface TSortedSet
getFirst, getLast
-
Constructor Details
-
TTreeSet
public TTreeSet() -
TTreeSet
-
TTreeSet
-
TTreeSet
-
-
Method Details
-
contains
- Specified by:
containsin interfaceTCollection<E>- Overrides:
containsin classTAbstractCollection<E>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceTCollection<E>- Overrides:
isEmptyin classTAbstractCollection<E>
-
size
public int size()- Specified by:
sizein interfaceTCollection<E>
-
iterator
-
clone0
Returns a newTreeSetwith the same elements and size as thisTreeSet.- Returns:
- a shallow copy of this
TreeSet. - See Also:
-
clear
public void clear()- Specified by:
clearin interfaceTCollection<E>- Overrides:
clearin classTAbstractCollection<E>
-
add
- Specified by:
addin interfaceTCollection<E>- Overrides:
addin classTAbstractCollection<E>
-
remove
- Specified by:
removein interfaceTCollection<E>- Overrides:
removein classTAbstractCollection<E>
-
comparator
- Specified by:
comparatorin interfaceTSortedSet<E>
-
subSet
- Specified by:
subSetin interfaceTSortedSet<E>
-
headSet
- Specified by:
headSetin interfaceTSortedSet<E>
-
tailSet
- Specified by:
tailSetin interfaceTSortedSet<E>
-
first
- Specified by:
firstin interfaceTSortedSet<E>
-
last
- Specified by:
lastin interfaceTSortedSet<E>
-
lower
- Specified by:
lowerin interfaceTNavigableSet<E>
-
floor
- Specified by:
floorin interfaceTNavigableSet<E>
-
ceiling
- Specified by:
ceilingin interfaceTNavigableSet<E>
-
higher
- Specified by:
higherin interfaceTNavigableSet<E>
-
pollFirst
- Specified by:
pollFirstin interfaceTNavigableSet<E>
-
pollLast
- Specified by:
pollLastin interfaceTNavigableSet<E>
-
descendingSet
- Specified by:
descendingSetin interfaceTNavigableSet<E>
-
descendingIterator
- Specified by:
descendingIteratorin interfaceTNavigableSet<E>
-
subSet
public TNavigableSet<E> subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) - Specified by:
subSetin interfaceTNavigableSet<E>
-
headSet
- Specified by:
headSetin interfaceTNavigableSet<E>
-
tailSet
- Specified by:
tailSetin interfaceTNavigableSet<E>
-
clone
-