//Spheroid Script/spheroid.collections/MutableCollection
MutableCollection
A generic collection of elements that supports adding and removing elements.
interface MutableCollection<E : Any?> : Collection
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 | Checks if the specified element is contained in this collection. operator fun contains(element: E): Boolean |
| isEmpty | Returns true if the collection is empty (contains no elements), false otherwise. 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 | Returns the size of the collection. val size: Long |
Inheritors
| Name |
|---|
| MapMarkerCollection |
| NodeCollection |
| MutableList |
| MutableSet |