Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Registry<K, V>

Type Parameters

  • K

  • V

Hierarchy

  • Registry

Index

Constructors

Methods

  • get(key: K): V
  • Gets the specified entry from the registry

    Parameters

    • key: K

      A string id referring to an entry

    Returns V

    A registry entry

  • getKeys(): K[]
  • Gets all the ids for this registry's entries

    Returns K[]

    An array of all the entry ids in this registry

  • getValues(): V[]
  • has(key: K): boolean
  • Checks if a registry entry exists on this registry

    Parameters

    • key: K

      A string id referring to an entry

    Returns boolean

    A boolean representing whether a registry entry exists or not

  • register(key: K, val: V): V
  • Registers a new entry to the Registry

    Parameters

    • key: K

      A string id referring to an entry

    • val: V

    Returns V

Generated using TypeDoc version 0.22.18, the 7/5/2022