QidMap represents a Set of mappings from Qid to some other object. It is like JavaScript Map, but specifically for keys of the Qid

Type Parameters

  • V

Constructors

Accessors

Methods

  • The clear() method of QidMap instances removes all Qid mappings from this map.

    Returns void

  • The delete() method of QidMap instances removes the specified Qid mapping from this map by qid.

    Parameters

    Returns boolean

  • Parameters

    • callbackFn: ((qid: Qid) => boolean)
        • (qid): boolean
        • Parameters

          Returns boolean

    • OptionalthisArg: unknown

    Returns void

  • Parameters

    • qid: Qid

      The Qid to get the value for

    Returns V

    The linked object or null when there is no mapping for the Qid

  • The has() method of QidMap instances returns a boolean indicating whether an element with the specified qid exists in this map or not.

    Parameters

    Returns boolean

  • The set() method of QidMap instances adds or updates an entry in this map with a specified Qid and a value.

    Parameters

    • qid: Qid

      The Qid for which to set the value

    • value: V

      The value to set

    Returns boolean

  • The setByVidOid() method of QidMap instances adds or updates an entry in this map with a specified Qid (given as Vid + Oid) and a value. This method should only be used when no Qid is available, and in those cases it will be slighly faster than first creating a Qid

    Parameters

    • vid: string

      The Vid for which to set the value

    • oid: number

      The Oid for which to set the value

    • value: V

      The value to set

    Returns boolean