Difference between EnumMap and HashMap in Java

Tutorials Shared by the Internet Community

Advertisements


Synopsis

EnumMap is a special Map interface implementation for Enum keys which take advantage of Enum properties to make assumption about key objects. EnumMap

Statistics

  • Total Hits - 16480

  • Total Votes - 100 votes

  • Vote Up - 43 votes

  • Vote Down - 57 votes

  • Domain - javarevisited.blogspot.com

  • Category - JAVA/Core JAVA

  • Submitted By - Javin Paul

  • Submitted on - 2013-02-11 04:07:05

Description

EnumMap is a special Map interface implementation for Enum keys which take advantage of Enum properties to make assumption about key objects. EnumMap is high performance Map and should be used when you are using Enum keys. ...


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

Advertisements