How to use EnumMap in Java with Example

Tutorials Shared by the Internet Community

Advertisements


Synopsis

EnumMap is a enum based datastructure introduced in Java 5 and an optimized, fast alternative of HashMap if keys are enum. This article explores when

Statistics

  • Total Hits - 25341

  • Total Votes - 121 votes

  • Vote Up - 49 votes

  • Vote Down - 72 votes

  • Domain - javarevisited.blogspot.com

  • Category - JAVA/Core JAVA

  • Submitted By - Javin Paul

  • Submitted on - 2013-01-25 15:49:39

Description

EnumMap is a enum based data structure introduced in Java 5 and an optimized, fast alternative of HashMap if keys are enum. This article explores when to use EnumMap in Java and How to use EnumMap in Java with distinguished advantage of EnumMap over HashMap and difference between HashMap and EnumMap in Java. ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements