Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TreeMap<K, V>

Type parameters

  • K

  • V

Hierarchy

  • TreeMap

Implements

Index

Constructors

constructor

Methods

__@iterator

  • __@iterator(): Iterator<K>

ceilingEntry

ceilingKey

  • ceilingKey(key: K): K

clear

  • clear(): void

comparator

containsKey

  • containsKey(key: K): boolean

containsValue

  • containsValue(value: V): boolean

entrySet

firstEntry

firstKey

  • firstKey(): K

floorEntry

floorKey

  • floorKey(key: K): K
  • Parameters

    • key: K

    Returns K

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

get

  • get(key: K): V
  • Parameters

    • key: K

    Returns V

    the value to which the specified key is mapped, or null if this map contains no mapping for the key

getNextHigherKey

  • getNextHigherKey(key: K): K
  • Parameters

    • key: K

    Returns K

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

higherEntry

higherKey

  • higherKey(key: K): K

immutableMap

isEmpty

  • isEmpty(): boolean

keySet

lastEntry

lastKey

  • lastKey(): K

lowerEntry

lowerKey

  • lowerKey(key: K): K

put

  • put(key: K, value: V): V
  • Parameters

    • key: K
    • value: V

    Returns V

    the previous value associated with key, or undefined if there was no mapping for key. (An undefined return can also indicate that the map previously associated undefined with key.)

remove

  • remove(key: K): V
  • Parameters

    • key: K

    Returns V

    the previous value associated with key, or null if there was no mapping for key. (A null return can also indicate that the map previously associated null with key.)

size

  • size(): number

toJSON

validateMap

  • validateMap(): boolean

Generated using TypeDoc