Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

Hierarchy

  • ObservableSet<TEntity>
    • TrackableSet

Implements

Index

Constructors

constructor

Properties

Private _addListener

_addListener: Subject<IEntityNotifyInfo<TEntity>> = new Subject<IEntityNotifyInfo<TEntity>>()

Private _modifyListener

_modifyListener: Subject<IPropertyNotifyInfo> = new Subject<IPropertyNotifyInfo>()

Private _removeListener

_removeListener: Subject<IEntityNotifyInfo<TEntity>> = new Subject<IEntityNotifyInfo<TEntity>>()

Private _tracking

_tracking: boolean

addListeners

addListeners: Subject<INotifyInfo>[]

Array of listeners to observe when entities are added to the collection.

readonly
type

{Subject[]}

memberof

ObservableSet

Protected deletedEntities

deletedEntities: Set<TEntity> = new Set<TEntity>()

removeListeners

removeListeners: Subject<INotifyInfo>[]

Array of listeners to observe when entities are removed from the collection.

readonly
type

{Subject[]}

memberof

ObservableSet

Static __@toStringTag

__@toStringTag: "Set"

Static size

size: number

Accessors

tracking

tracking:

Methods

add

  • add(value: TEntity): this
  • Add an entity to the collection.

    memberof

    ObservableSet

    Parameters

    • value: TEntity

    Returns this

addRange

  • addRange(...values: TEntity[]): this
  • Add one or more entities to the collection.

    memberof

    ObservableSet

    Parameters

    • Rest ...values: TEntity[]

    Returns this

delete

  • delete(value: TEntity): boolean
  • Remove an entity from the collection.

    memberof

    ObservableSet

    Parameters

    • value: TEntity

    Returns boolean

deleteRange

  • deleteRange(...values: TEntity[]): boolean
  • Remove one or more entities from the collection.

    memberof

    ObservableSet

    Parameters

    • Rest ...values: TEntity[]

    Returns boolean

Private setTracking

  • setTracking(): void

Static __@iterator

  • __@iterator(): IterableIterator<TEntity>
  • Returns IterableIterator<TEntity>

Static add

  • add(value: TEntity): this
  • Parameters

    • value: TEntity

    Returns this

Static clear

  • clear(): void
  • Returns void

Static delete

  • delete(value: TEntity): boolean
  • Parameters

    • value: TEntity

    Returns boolean

Static entries

  • entries(): IterableIterator<[TEntity, TEntity]>
  • Returns IterableIterator<[TEntity, TEntity]>

Static forEach

  • forEach(callbackfn: function, thisArg?: any): void
  • Parameters

    • callbackfn: function
        • (value: TEntity, value2: TEntity, set: Set<TEntity>): void
        • Parameters

          • value: TEntity
          • value2: TEntity
          • set: Set<TEntity>

          Returns void

    • Optional thisArg: any

    Returns void

Static has

  • has(value: TEntity): boolean
  • Parameters

    • value: TEntity

    Returns boolean

Static keys

  • keys(): IterableIterator<TEntity>
  • Returns IterableIterator<TEntity>

Static values

  • values(): IterableIterator<TEntity>
  • Returns IterableIterator<TEntity>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc