Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

  • T

Hierarchy

Implemented by

Index

Properties

count

count: number

Optional isEndless

isEndless: boolean

Provides a way of flagging endless enumerations that may cause issues.

isReadOnly

isReadOnly: boolean

Methods

add

  • add(entry: T): void
  • Parameters

    • entry: T

    Returns void

clear

  • clear(): number
  • Returns number

contains

  • contains(entry: T): boolean
  • Parameters

    • entry: T

    Returns boolean

copyTo

  • copyTo<TTarget>(target: TTarget, index?: number): TTarget
  • Type parameters

    Parameters

    • target: TTarget
    • Optional index: number

    Returns TTarget

exceptWith

  • Removes all elements in the specified collection from the current set.

    Parameters

    Returns void

getEnumerator

importEntries

intersectWith

  • Modifies the current set so that it contains only elements that are also in a specified collection.

    Parameters

    Returns void

isProperSubsetOf

  • Determines whether the current set is a proper (strict) subset of a specified collection. The other set must have a value that does not exist in the current set.

    Parameters

    Returns boolean

isProperSupersetOf

  • Determines whether the current set is a proper (strict) superset of a specified collection. The current set must have a value that does not exist in the other set.

    Parameters

    Returns boolean

isSubsetOf

  • Determines whether a set is a subset of a specified collection. Equal sets return true.

    Parameters

    Returns boolean

isSupersetOf

  • Determines whether the current set is a superset of a specified collection. Equal sets return true.

    Parameters

    Returns boolean

overlaps

  • Determines whether the current set overlaps with the specified collection.

    Parameters

    Returns boolean

remove

  • remove(entry: T, max?: number): number
  • Parameters

    • entry: T
    • Optional max: number

    Returns number

setEquals

  • Determines whether the current set and the specified collection contain the same elements.

    Parameters

    Returns boolean

symmetricExceptWith

  • Modifies the current set so that it contains only elements that are present either in the current set or in the specified collection, but not both.

    Parameters

    Returns void

toArray

  • toArray(): T[]

unionWith

  • Modifies the current set so that it contains all elements that are present in the current set, in the specified collection, or in both.

    Parameters

    Returns void

Generated using TypeDoc