Documentation / listeners / com.femastudios.listeners.picoStructures / TinySet

TinySet

abstract class TinySet<T : Any>

Class to hold up to 5 items.

Since this class is meant to use as little memory as possible, it is suggested to extend this class directly from the object that wants to use it

Parameters

Constructors

<init>

Class to hold up to 5 items.

TinySet()

Inheritors

FlexibleSet

Class to hold an arbitrary number of items. When storing less than five items, this class will not use any additional object.

open class FlexibleSet<T : Any> : TinySet<T>