E
- public class TTreeSet<E> extends TAbstractSet<E> implements TNavigableSet<E>
Constructor and Description |
---|
TTreeSet() |
TTreeSet(TCollection<? extends E> coll) |
TTreeSet(TComparator<? super E> comparator) |
TTreeSet(TSortedSet<E> s) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(E e) |
E |
ceiling(E e) |
void |
clear() |
TComparator<? super E> |
comparator() |
TIterator<E> |
descendingIterator() |
TNavigableSet<E> |
descendingSet() |
E |
first() |
E |
floor(E e) |
TSortedSet<E> |
headSet(E toElement) |
TNavigableSet<E> |
headSet(E toElement,
boolean inclusive) |
E |
higher(E e) |
TIterator<E> |
iterator() |
E |
last() |
E |
lower(E e) |
E |
pollFirst() |
E |
pollLast() |
boolean |
remove(Object o) |
int |
size() |
TNavigableSet<E> |
subSet(E fromElement,
boolean fromInclusive,
E toElement,
boolean toInclusive) |
TSortedSet<E> |
subSet(E fromElement,
E toElement) |
TSortedSet<E> |
tailSet(E fromElement) |
TNavigableSet<E> |
tailSet(E fromElement,
boolean inclusive) |
equals, hashCode, removeAll
addAll, contains, containsAll, isEmpty, retainAll, toArray, toArray, toString
clone, equals0, finalize, getClass0, notify0, notifyAll0, wait0, wait0, waitImpl
addAll, contains, containsAll, isEmpty, removeAll, retainAll, spliterator, stream, toArray, toArray
public TTreeSet()
public TTreeSet(TComparator<? super E> comparator)
public TTreeSet(TCollection<? extends E> coll)
public TTreeSet(TSortedSet<E> s)
public int size()
size
in interface TCollection<E>
public void clear()
clear
in interface TCollection<E>
clear
in class TAbstractCollection<E>
public boolean add(E e)
add
in interface TCollection<E>
add
in class TAbstractCollection<E>
public boolean remove(Object o)
remove
in interface TCollection<E>
remove
in class TAbstractCollection<E>
public TComparator<? super E> comparator()
comparator
in interface TSortedSet<E>
public TSortedSet<E> subSet(E fromElement, E toElement)
subSet
in interface TSortedSet<E>
public TSortedSet<E> headSet(E toElement)
headSet
in interface TSortedSet<E>
public TSortedSet<E> tailSet(E fromElement)
tailSet
in interface TSortedSet<E>
public E first()
first
in interface TSortedSet<E>
public E last()
last
in interface TSortedSet<E>
public E lower(E e)
lower
in interface TNavigableSet<E>
public E floor(E e)
floor
in interface TNavigableSet<E>
public E ceiling(E e)
ceiling
in interface TNavigableSet<E>
public E higher(E e)
higher
in interface TNavigableSet<E>
public E pollFirst()
pollFirst
in interface TNavigableSet<E>
public E pollLast()
pollLast
in interface TNavigableSet<E>
public TNavigableSet<E> descendingSet()
descendingSet
in interface TNavigableSet<E>
public TIterator<E> descendingIterator()
descendingIterator
in interface TNavigableSet<E>
public TNavigableSet<E> subSet(E fromElement, boolean fromInclusive, E toElement, boolean toInclusive)
subSet
in interface TNavigableSet<E>
public TNavigableSet<E> headSet(E toElement, boolean inclusive)
headSet
in interface TNavigableSet<E>
public TNavigableSet<E> tailSet(E fromElement, boolean inclusive)
tailSet
in interface TNavigableSet<E>
Copyright © 2019. All rights reserved.