Class AttributesBase<T>Abstract

Base class for DOT objects with attributes.

Type Parameters

Hierarchy

  • DotObject_3
    • AttributesBase

Implements

Constructors

Properties

Accessors

Methods

Constructors

Properties

#private: any

Accessors

  • get size(): number
  • Size of the set of keys and values held by the DOT object.

    Returns number

  • get values(): readonly [T, Attribute<T>][]
  • The key/value tuples of the object attributes.

    Returns readonly [T, Attribute<T>][]

Methods

  • Apply keys and values that can be specified for DOT objects collectively.

    Parameters

    Returns void

  • Delete all attributes specified for the DOT object.

    Returns void

  • Delete the value of an attribute from a DOT object by specifying a key.

    Parameters

    • key: T

    Returns void

  • Get the value of an attribute by a DOT object by specifying its key.

    If the value corresponding to the key does not exist, undefined is returned.

    Type Parameters

    Parameters

    • key: K

    Returns undefined | Attribute<K>

  • Set a value, by specifying the key of the attributes in the DOT object.

    Type Parameters

    Parameters

    Returns void

Generated using TypeDoc