//Spheroid Script/spheroid.collections/Collection
Collection
A generic collection of elements. Methods in this interface support only read-only access to the collection; read/write access is supported through the MutableCollection interface.
interface Collection<E : Any?> : Iterable
Functions
| Name | Summary |
|---|---|
| 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 |
| toString | fun toString(): String |
Properties
| Name | Summary |
|---|---|
| size | Returns the size of the collection. val size: Long |
Inheritors
| Name |
|---|
| MutableCollection |
| List |
| Set |