Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BiMap<K, V>

Type parameters

  • K

  • V

Hierarchy

  • BiMap

Index

Constructors

constructor

  • Parameters

    • Optional m: Array<[K, V]> | Map<K, V> | BiMap<K, V>

    Returns BiMap

Methods

clear

  • clear(): void
  • Returns void

delete

  • delete(k: K): boolean
  • Parameters

    • k: K

    Returns boolean

forEach

  • forEach(fn: (value: V, key: K, map: Map<K, V>) => void, ctx?: any): void
  • Parameters

    • fn: (value: V, key: K, map: Map<K, V>) => void
        • (value: V, key: K, map: Map<K, V>): void
        • Parameters

          • value: V
          • key: K
          • map: Map<K, V>

          Returns void

    • Optional ctx: any

    Returns void

get

  • get(k: K): V
  • Parameters

    • k: K

    Returns V

has

  • has(k: K): boolean
  • Parameters

    • k: K

    Returns boolean

inverse

put

  • put(k: K, v: V): void
  • Parameters

    • k: K
    • v: V

    Returns void

putAll

  • putAll(map: Array<[K, V]> | Map<K, V> | BiMap<K, V>): void
  • Parameters

    Returns void

size

  • size(): number
  • Returns number

Static convert

  • convert(json: JsonObject<string | number>): BiMap<string, string | number>
  • Parameters

    Returns BiMap<string, string | number>