TreeSet

GPTKB entity

Statements (50)
Predicate Object
gptkbp:instanceOf gptkb:class
gptkbp:allows iteration in ascending order
iteration in descending order
gptkbp:alternativeTo gptkb:HashSet
gptkb:LinkedHashSet
gptkbp:builtBy gptkb:TreeSet(SortedSet<E>_s)
TreeSet()
TreeSet(Collection<? extends E> c)
TreeSet(Comparator<? super E> comparator)
gptkbp:compatibleWith null elements (if natural ordering)
gptkbp:complexity O(log n) for add, remove, contains
gptkbp:documentation https://docs.oracle.com/javase/8/docs/api/java/util/TreeSet.html
gptkbp:extendsTo gptkb:AbstractSet
gptkbp:heldBy fail-fast on concurrent modification
not synchronized
not thread-safe
https://www.w3.org/2000/01/rdf-schema#label TreeSet
gptkbp:implementedIn gptkb:Cloneable
gptkb:NavigableSet
Serializable
gptkbp:introducedIn gptkb:Java_1.2
gptkbp:mayInclude duplicate elements
heterogeneous elements (if natural ordering)
gptkbp:method clear()
clone()
size()
add(E e)
ceiling(E e)
comparator()
contains(Object o)
descendingIterator()
first()
floor(E e)
higher(E e)
iterator()
last()
lower(E e)
pollFirst()
pollLast()
remove(Object o)
gptkbp:numberOfLocations sorted elements
gptkbp:order Comparator ordering
natural ordering
gptkbp:partOf gptkb:Java_Collections_Framework
gptkbp:serialVersionUID 1L
gptkbp:supportedBy gptkb:TreeMap
gptkbp:type java.util
gptkbp:usedFor storing unique sorted elements
gptkbp:bfsParent gptkb:java.util_package
gptkbp:bfsLayer 5