View on GitHub

SpheroidScript

//Spheroid Script/spheroid.collections/MutableSet

MutableSet

A generic unordered collection of elements that does not support duplicate elements, and supports adding and removing elements.

interface MutableSet<E : Any?> : Set, MutableCollection

Functions

Name Summary
add Adds the specified element to the collection.
fun add(element: E): Boolean
clear Removes all elements from this collection.
fun clear()
contains operator fun contains(element: E): Boolean
isEmpty fun isEmpty(): Boolean
remove Removes a single instance of the specified element from this collection, if it is present.
fun remove(element: E): Boolean
toString fun toString(): String

Properties

Name Summary
size val size: Long