Top "Enum-map" questions

`EnumMap` is optimized Map implementation exclusively for Enum keys.

EnumMap or HashMap if lookup key is a String

I'm trying to weigh the pros and cons of using an EnumMap over a HashMap. Since, I will always be …

java collections hashmap enum-map
Is there a corresponding immutable enumMap in guava?

I recently learnt about the benefits of EnumMap in Java and would like to replace the existing ImmutableMap<OccupancyType, …

java immutability guava enum-map
Initialize Map of EnumMap

I need to initialize the following private member in a JavaFX application where I am trying to organize gui widgets, …

java javafx enum-map
Why use EnumMap instead of HashMap

As we already have HashMap, why would we use EnumMap?

java hashmap enum-map
Create EnumMap from List of values in Kotlin

I would like to define an extension of the enum class which accepts a list of values in the same …

kotlin kotlin-extension enum-map