complementOf

fun <E : Enum<E>> complementOf(s: EnumSet<E>): EnumSet<E>

Creates an enum set with the same element type as the specified enum set, initially containing all the elements of this type that are not contained in the specified set.

Return

The complement of the specified set in this set

Parameters

The class of the elements in the enum set
s

the enum set from whose complement to initialize this enum set

Throws