Example usage for Java java.util EnumMap fields, constructors, methods, implement or subclass
The text is from its open source code.
int | size The number of mappings in this map. |
Set | entrySet This field is initialized to contain an instance of the entry set view the first time this view is requested. |
EnumMap(Class Creates an empty enum map with the specified key type. | |
EnumMap(EnumMap Creates an enum map with the same key type as the specified enum map, initially containing the same mappings (if any). | |
EnumMap(Map Creates an enum map initialized from the specified map. |
void | clear() Removes all mappings from this map. |
EnumMap | clone() Returns a shallow copy of this enum map. |
boolean | containsKey(Object key) Returns true if this map contains a mapping for the specified key. |
boolean | containsValue(Object value) Returns true if this map maps one or more keys to the specified value. |
boolean | equals(Object o) Compares the specified object with this map for equality. |
boolean | equals(EnumMap, ?> em) |
V | get(Object key) Returns the value to which the specified key is mapped, or null if this map contains no mapping for the key. |
Class> | getClass() Returns the runtime class of this Object . |
int | hashCode() Returns the hash code value for this map. |
Set | keySet() Returns a Set view of the keys contained in this map. |
V | put(K key, V value) Associates the specified value with the specified key in this map. |
void | putAll(Map extends K, ? extends V> m) Copies all of the mappings from the specified map to this map. |
V | remove(Object key) Removes the mapping for this key from this map if present. |
String | toString() Returns a string representation of the object. |
Collection | values() Returns a Collection view of the values contained in this map. |