Options
All
  • Public
  • Public/Protected
  • All
Menu

AbstractSuperSet

Abstraction for Sets (SimpleSet, HashSet, SortedSet etc)

Type parameters

  • T

Hierarchy

Implements

Index

Constructors

Protected constructor

Properties

Private _comparator

_comparator: Comparator<T>

_comparator

param
param

Protected _elements

_elements: T[] = []

_elements

Static Readonly ACTION_ADD

ACTION_ADD: "ACTION_ADD" = "ACTION_ADD"

Types of actions

Static Readonly ACTION_CLEAR

ACTION_CLEAR: "ACTION_CLEAR" = "ACTION_CLEAR"

Static Readonly ACTION_DELETE

ACTION_DELETE: "ACTION_DELETE" = "ACTION_DELETE"

Static Readonly ACTION_REPLACE

ACTION_REPLACE: "ACTION_REPLACE" = "ACTION_REPLACE"

Accessors

elements

  • get elements(): T[]
  • set elements(elements: T[]): void

Methods

[Symbol.iterator]

  • [Symbol.iterator](): any

Protected actionAdd

  • actionAdd(elements: T[]): void

Protected actionClear

  • actionClear(): this

Protected actionDelete

  • actionDelete(elements: T[]): void

add

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

Protected Abstract afterAction

  • afterAction(fName: string, elements: T | T[]): void
  • afterAction hook

    Actions are insert update delete, any change in set see: ACTION ADD, ACTION DELETE, ACTION CLEAR

    Parameters

    • fName: string
    • elements: T | T[]

    Returns void

Protected Abstract beforeAction

  • beforeAction(fName: string, elements: T | T[]): void
  • beforeAction hook

    Actions are insert update delete, any change in set see: ACTION ADD, ACTION DELETE, ACTION CLEAR

    Parameters

    • fName: string
    • elements: T | T[]

    Returns void

clear

  • clear(): this

delete

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

has

  • has(element: T): boolean

hasAll

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

hasNot

  • hasNot(element: T): boolean

Protected isUnique

  • isUnique(element: T): boolean

refresh

  • refresh(): void

Protected replaceAndPreventHook

  • replaceAndPreventHook(elements: T[]): void

Protected replaceWithHook

  • replaceWithHook(elements: T[]): void

size

  • size(): number

toString

  • toString(): string

Static isHashableNumType

  • isHashableNumType(value: any): value is HashableReturnNum

Static isHashableStrType

  • isHashableStrType(value: any): value is HashableReturnStr

Legend

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

Generated using TypeDoc