MutableSet
A generic unordered collection of elements that does not support duplicate elements, and supports adding and removing elements.
Since Kotlin
1.0A generic unordered collection of elements that does not support duplicate elements, and supports adding and removing elements.
Since Kotlin
1.1Parameters
the type of elements contained in the set. The mutable set is invariant in its element type.
the type of elements contained in the set. The mutable set is invariant in its element type.
Functions
Adds all of the elements of the specified collection to this collection.
Adds all of the elements of the specified collection to this collection.
Checks if all elements in the specified collection are contained in this collection.
Checks if all elements in the specified collection are contained in this collection.
Returns an iterator over the elements of this object.
Returns an iterator over the elements of this object.
Removes a single instance of the specified element from this collection, if it is present.
Removes all of this collection's elements that are also contained in the specified collection.
Removes all of this collection's elements that are also contained in the specified collection.
Retains only the elements in this collection that are contained in the specified collection.
Retains only the elements in this collection that are contained in the specified collection.
Properties
Extensions
Appends all elements that are instances of specified class to the given destination.
Returns a new SortedSet of all elements.