Set for Longs.

Uses fast string representation internally

Hierarchy

  • CustomSet<Long, string>
    • LongSet

Constructors

  • Returns LongSet

Properties

clear: () => void

Accessors

  • get "[toStringTag]"(): string
  • Returns string

  • get size(): number
  • Returns number

    the number of (unique) elements in Set.

Methods

  • Returns IterableIterator<Long>

  • Appends a new element with a specified value to the end of the Set.

    Parameters

    Returns this

  • Removes a specified value from the Set.

    Parameters

    Returns boolean

    Returns true if an element in the Set existed and has been removed, or false if the element does not exist.

  • Returns Set<Long>

    a new Set containing all the elements in this Set which are not also in the argument.

  • Returns an iterable of [v,v] pairs for every value v in the set.

    Returns IterableIterator<[Long, Long]>

  • Executes a provided function once per each value in the Set object, in insertion order.

    Parameters

    • callbackfn: (value: Long, value2: Long, set: Set<Long>) => void
    • OptionalthisArg: any

    Returns void

  • Returns Set<string>

  • Parameters

    Returns boolean

    a boolean indicating whether an element with the specified value exists in the Set or not.

  • Type Parameters

    • U

    Returns Set<Long & U>

    a new Set containing all the elements which are both in this Set and in the argument.

  • Returns boolean

    a boolean indicating whether this Set has no elements in common with the argument.

  • Returns boolean

    a boolean indicating whether all the elements in this Set are also in the argument.

  • Returns boolean

    a boolean indicating whether all the elements in the argument are also in this Set.

  • Despite its name, returns an iterable of the values in the set.

    Returns IterableIterator<Long>

  • Type Parameters

    • U

    Returns Set<Long | U>

    a new Set containing all the elements which are in either this Set or in the argument, but not in both.

  • Type Parameters

    • U

    Returns Set<Long | U>

    a new Set containing all the elements in this Set and also all the elements in the argument.

  • Returns an iterable of values in the set.

    Returns IterableIterator<Long>