add

abstract fun add(element: E, occurrences: Int): Int(source)

Adds a number of occurrences of an element to this multiset.

Return

the count of the element before the operation; possibly zero

See also

Parameters

element

the element to add occurrences of; may be null only if explicitly allowed by the implementation

occurrences

the number of occurrences of the element to add. May be zero, in which case no change will be made.