@tsdotnet/ordered-registry - v1.1.7
    Preparing search index...

    Class default<TKey, TValue>

    A collection for registering values by key. This base class is intended to facilitate specialized control. Sub-classes control how items are added.

    Type Parameters

    • TKey
    • TValue

    Hierarchy (View Summary)

    Index

    Constructors

    Accessors

    • get isEmpty(): boolean

      Returns true if there are no entries.

      Returns boolean

    • get keys(): ExtendedIterable<TKey>

      Returns an in-order iterable of all keys.

      Returns ExtendedIterable<TKey>

    • get values(): ExtendedIterable<TValue>

      Returns an in-order iterable of all values.

      Returns ExtendedIterable<TValue>

    • get version(): number

      The version number used to track changes.

      Returns number

    Methods

    • Adds an entry to the registry if it doesn't exist. Returns true if the key did not exist and the entry was added. Returns false if the key already exists.

      Parameters

      Returns boolean