EnumMap

fun <K : Enum<K>> EnumMap(enums: Array<K>)

Construct an EnumMap.

Parameters

enums

The Array of Enums, in Enum.ordinal order of all the Enum values represented in the Enum. It is expected that all enum values will be present.


fun <K : Enum<K>, V : Any> EnumMap(enums: Array<K>, sourceValues: Array<V?>)

Construct an EnumMap.

Parameters

K

The type of Enum keys maintained by this EnumMap

V

The type of the values stored in this EnumMap.

enums

The Array of Enums, in Enum.ordinal order of all the Enum values represented in the Enum. It is expected that all enum values will be present.

sourceValues

The Array of values stored in this Enum.