byIdMap

fun <T : Enum<T>> byIdMap(enumClass: Class<T>, idMapper: ToIntFunction<T>): Int2ObjectMap<T>
fun <T> byIdMap(idMapper: ToIntFunction<T>, values: Array<T>): Int2ObjectMap<T>
fun <T> byIdMap(idMapper: (T) -> Int, values: Array<T>): Int2ObjectMap<T>