noneOf

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

Creates an empty enum set with the specified element type.

Return

An empty enum set of 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