Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HashMultiSet<K>

Type parameters

  • K

Hierarchy

  • HashMultiSet

Implements

Index

Constructors

constructor

Methods

__@iterator

  • __@iterator(): Iterator<K>

add

  • add(element: K): boolean
  • Parameters

    • element: K

    Returns boolean

    true if this MultiSet did not already contain the specified element

clear

  • clear(): void

contains

  • contains(item: K): boolean

count

  • count(item: K): number
  • Parameters

    • item: K

    Returns number

    the number of occurrences of the element in this MultiSet; possibly zero but never negative

forEach

getHashable

immutableCollection

immutableMultiSet

isEmpty

  • isEmpty(): boolean

iterator

keySet

remove

  • remove(element: K): boolean

size

  • size(): number

toJSON

  • toJSON(): Array<K>

Generated using TypeDoc