Есть ли в guava соответствующий неизменяемый enumMap?

Недавно я узнал о преимуществах EnumMap в Java и хотел бы заменить существующиеImmutableMap<OccupancyType, BigDecimal> в EnumMap. Однако мне также нравится неизменное свойство, предлагаемое ImmutableMap.

Is there a variant, ImmutableEnumMap available in guava ? In terms of storage which one (EnumMap vs ImmutableMap) performs better ? I couldn't find a comparison of the two. I'd appreciate if someone can point me to a link or give some insights on the efficiency of the two data structures ?

Ответы на вопрос(3)

Ваш ответ на вопрос