This is a local implementation of RemoteSet for cases when entries are cannot be scrolled through on the server and must instead be cached on the client.

Type Parameters

  • T

Hierarchy

  • LocalSet

Implements

Constructors

Accessors

Methods

Constructors

  • Constructs a new LocalSet.

    Type Parameters

    • T

    Parameters

    • size: number = 32
    • Optional iterable: Iterable<T>

    Returns LocalSet<T>

Accessors

  • get size(): Promise<number>
  • Returns the number of values in the Set object.

    Returns

    the number of values in the Set object

    Returns Promise<number>

Methods

  • Inherit Doc

    Returns IterableIterator<T>

  • The iterator over this set.

    Returns

    a iterator over this set

    Returns IterableIterator<T>

  • Removes all elements from the Set object.

    Returns

    a Promise resolving to true if the elements were removed from this set, otherwise resolves to false

    Returns Promise<boolean>

  • Removes the specified element from this set if it is present.

    Returns

    a Promise resolving to true if the elements were removed from this set, otherwise resolves to false

    Parameters

    • val: T

      the value to be removed from this set, if present

    Returns Promise<boolean>

  • Returns true if this set contains the specified element.

    Returns

    a Promise resolving to true if set contains the value, or false if not

    Parameters

    • val: T

      whose presence in this set is to be tested

    Returns Promise<boolean>