Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TreeSet<K>

Type parameters

  • K

Hierarchy

  • TreeSet

Implements

Index

Constructors

constructor

Methods

__@iterator

  • __@iterator(): Iterator<K>

add

  • add(element: K): boolean
  • Parameters

    • element: K

    Returns boolean

    true if this set did not already contain the specified element

ceiling

  • ceiling(item: K): K
  • Parameters

    • item: K

    Returns K

    the least element greater than or equal to item, or null if there is no such element

clear

  • clear(): void

comparator

contains

  • contains(item: K): boolean

first

  • first(): K
  • Returns K

    the first (lowest) element currently in this set, null if there are no elements in this set

floor

  • floor(item: K): K
  • Parameters

    • item: K

    Returns K

    the greatest element less than or equal to e, or null if there is no such element

forEach

getNextHigherKey

  • getNextHigherKey(key: K): K
  • Parameters

    • key: K

    Returns K

    the least key greater than key, or null if there is no such key

higher

  • higher(item: K): K

immutableCollection

immutableSet

isEmpty

  • isEmpty(): boolean

iterator

last

  • last(): K
  • Returns K

    the last (highest) element currently in this set, null if there are no elements in this set

lower

  • lower(item: K): K
  • Parameters

    • item: K

    Returns K

    the highest key lower than key, or null if there is no such key

pollFirst

  • pollFirst(): K

pollLast

  • pollLast(): K

remove

  • remove(element: K): boolean

size

  • size(): number

toJSON

  • toJSON(): Array<K>

validateSet

  • validateSet(): boolean

Generated using TypeDoc