Set
A generic unordered collection of elements that does not support duplicate elements. Methods in this interface support only read-only access to the set; read/write access is supported through the MutableSet interface.
Since Kotlin
1.0A generic unordered collection of elements that does not support duplicate elements. Methods in this interface support only read-only access to the set; read/write access is supported through the MutableSet interface.
Since Kotlin
1.1Parameters
the type of elements contained in the set. The set is covariant in its element type.
the type of elements contained in the set. The set is covariant in its element type.
Functions
Checks if the specified element is contained in this collection.
Checks if the specified element is contained in 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.
Properties
Inheritors
Extensions
Appends all elements that are instances of specified class to the given destination.
Returns a new SortedSet of all elements.