Package kotlin.enums
Types
EnumEntries
A specialized immutable implementation of List interface that contains all enum entries of the specified enum type E. EnumEntries contains all enum entries in the order they are declared in the source code, consistently with the corresponding Enum.ordinal values.
Functions
enumEntries
Returns EnumEntries list containing all enum entries for the given enum type T.
fun <T : Enum<T>> enumEntries(): EnumEntries<T>