Package org.teavm.classlib.java.util
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 org.teavm.classlib.java.util.TAbstractSet
equals, hashCode, removeAll
Methods inherited from class org.teavm.classlib.java.util.TAbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
Methods inherited from class org.teavm.classlib.java.lang.TObject
equals0, finalize, getClass0, notify0, notifyAll0, wait0, wait0, waitImpl
Methods inherited from interface org.teavm.classlib.java.util.TCollection
addAll, containsAll, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
Methods inherited from interface org.teavm.classlib.java.util.TNavigableSet
removeFirst, removeLast, reversed
Methods inherited from interface org.teavm.classlib.java.util.TSequencedCollection
addFirst, addLast
Methods inherited from interface org.teavm.classlib.java.util.TSortedSet
getFirst, getLast
-
Constructor Details
-
TTreeSet
public TTreeSet() -
TTreeSet
-
TTreeSet
-
TTreeSet
-
-
Method Details
-
contains
- Specified by:
contains
in interfaceTCollection<E>
- Overrides:
contains
in classTAbstractCollection<E>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmpty
in interfaceTCollection<E>
- Overrides:
isEmpty
in classTAbstractCollection<E>
-
size
public int size()- Specified by:
size
in interfaceTCollection<E>
-
iterator
-
clone0
Returns a newTreeSet
with the same elements and size as thisTreeSet
.- Returns:
- a shallow copy of this
TreeSet
. - See Also:
-
clear
public void clear()- Specified by:
clear
in interfaceTCollection<E>
- Overrides:
clear
in classTAbstractCollection<E>
-
add
- Specified by:
add
in interfaceTCollection<E>
- Overrides:
add
in classTAbstractCollection<E>
-
remove
- Specified by:
remove
in interfaceTCollection<E>
- Overrides:
remove
in classTAbstractCollection<E>
-
comparator
- Specified by:
comparator
in interfaceTSortedSet<E>
-
subSet
- Specified by:
subSet
in interfaceTSortedSet<E>
-
headSet
- Specified by:
headSet
in interfaceTSortedSet<E>
-
tailSet
- Specified by:
tailSet
in interfaceTSortedSet<E>
-
first
- Specified by:
first
in interfaceTSortedSet<E>
-
last
- Specified by:
last
in interfaceTSortedSet<E>
-
lower
- Specified by:
lower
in interfaceTNavigableSet<E>
-
floor
- Specified by:
floor
in interfaceTNavigableSet<E>
-
ceiling
- Specified by:
ceiling
in interfaceTNavigableSet<E>
-
higher
- Specified by:
higher
in interfaceTNavigableSet<E>
-
pollFirst
- Specified by:
pollFirst
in interfaceTNavigableSet<E>
-
pollLast
- Specified by:
pollLast
in interfaceTNavigableSet<E>
-
descendingSet
- Specified by:
descendingSet
in interfaceTNavigableSet<E>
-
descendingIterator
- Specified by:
descendingIterator
in interfaceTNavigableSet<E>
-
subSet
public TNavigableSet<E> subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive) - Specified by:
subSet
in interfaceTNavigableSet<E>
-
headSet
- Specified by:
headSet
in interfaceTNavigableSet<E>
-
tailSet
- Specified by:
tailSet
in interfaceTNavigableSet<E>
-
clone
-