Options
All
  • Public
  • Public/Protected
  • All
Menu

Class IdentifierGenerator<T, K>

Type parameters

  • T

  • K

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

  • Parameters

    • Default value seed: number = 0

    Returns IdentifierGenerator

Properties

cache

cache: Map<T, K> = new Map

seed

seed: number = 0

Methods

Abstract generate

  • generate(id: number): K
  • Parameters

    • id: number

    Returns K

get

  • get(key: T): K
  • Parameters

    • key: T

    Returns K

getCached

  • getCached(key: T): K
  • Parameters

    • key: T

    Returns K

has

  • has(key: T): boolean
  • Parameters

    • key: T

    Returns boolean

set

  • set(key: T, name: K): void
  • Parameters

    • key: T
    • name: K

    Returns void

Generated using TypeDoc