View on GitHub

SpheroidScript

//Spheroid Script/spheroid.collections/Set

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.

interface Set<E : Any?> : Collection

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
MutableSet