java.util

Class EnumMap<K,V>

public class EnumMap<K extends Enum<K>,V> extends AbstractMap<K,V> implements Cloneable, Serializable

Since: 1.5

Constructor Summary
EnumMap(Class<K> keyType)
EnumMap(EnumMap<K,? extends V> map)
EnumMap(Map<K,? extends V> map)
Method Summary
voidclear()
EnumMap<K,V>clone()
booleancontainsKey(Object key)
booleancontainsValue(Object value)
Set<Entry<K,V>>entrySet()
booleanequals(Object o)
Vget(Object key)
Set<K>keySet()
Vput(K key, V value)
voidputAll(Map<? extends K,? extends V> map)
Vremove(Object key)
intsize()
Collection<V>values()

Constructor Detail

EnumMap

public EnumMap(Class<K> keyType)

EnumMap

public EnumMap(EnumMap<K,? extends V> map)

EnumMap

public EnumMap(Map<K,? extends V> map)

Method Detail

clear

public void clear()

clone

public EnumMap<K,V> clone()

containsKey

public boolean containsKey(Object key)

containsValue

public boolean containsValue(Object value)

entrySet

public Set<Entry<K,V>> entrySet()

equals

public boolean equals(Object o)

get

public V get(Object key)

keySet

public Set<K> keySet()

put

public V put(K key, V value)

putAll

public void putAll(Map<? extends K,? extends V> map)

remove

public V remove(Object key)

size

public int size()

values

public Collection<V> values()