Options
All
  • Public
  • Public/Protected
  • All
Menu

SetInterface

All SetInterface's methods

Type parameters

  • T

Hierarchy

  • SetInterface

Implemented by

Index

Methods

add

  • add(...element: T[]): this
  • add

    Add new, unique element (use comparator for checking elements equality)

    Parameters

    • Rest ...element: T[]

    Returns this

clear

  • clear(): this

delete

  • delete(...element: T[]): this
  • delete

    Delete element or many of them (use comparator for checking elements equality)

    Parameters

    • Rest ...element: T[]

    Returns this

has

  • has(element: T): boolean
  • has

    Check if set contains element (use comparator for checking elements equality)

    Parameters

    • element: T

    Returns boolean

hasAll

  • hasAll(...element: T[]): boolean

hasNot

  • hasNot(element: T): boolean

refresh

  • refresh(): void
  • refresh

    Refresh set to make sure that set contains unique elements in correct order (in case of mutable objects and any kind of changes on them)

    Returns void

size

  • size(): number

Legend

  • Constructor
  • Method
  • Accessor
  • Inherited constructor
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Static property
  • Static method
  • Method
  • Private property

Generated using TypeDoc