allOf

inline fun <E : Enum<E>> allOf(elementType: KClass<E>): EnumSet<E>

Creates an enum set containing all of the elements in the specified element type.

Return

An enum set containing all the elements in the specified type.

Parameters

The class of the elements in the set
elementType

the class object of the element type for this enum set

Throws

if elementType is null