it.stefanochizzolini.clown.util
Class BiMap<K,V>
java.lang.Object
java.util.Dictionary<K,V>
java.util.Hashtable<K,V>
it.stefanochizzolini.clown.util.BiMap<K,V>
- All Implemented Interfaces:
- Serializable, Cloneable, Map<K,V>
public class BiMap<K,V>
- extends Hashtable<K,V>
Bidirectional bijective map.
- Since:
- 0.0.8
- Version:
- 0.0.8
- Author:
- Stefano Chizzolini (http://www.stefanochizzolini.it)
- See Also:
- Serialized Form
Methods inherited from class java.util.Hashtable |
clear, clone, containsKey, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, rehash, size, toString, values |
BiMap
public BiMap()
BiMap
public BiMap(int initialCapacity)
BiMap
public BiMap(Map<? extends K,? extends V> map)
contains
public boolean contains(Object value)
- Overrides:
contains
in class Hashtable<K,V>
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interface Map<K,V>
- Overrides:
containsValue
in class Hashtable<K,V>
getKey
public K getKey(V value)
put
public V put(K key,
V value)
- Specified by:
put
in interface Map<K,V>
- Overrides:
put
in class Hashtable<K,V>
putAll
public void putAll(Map<? extends K,? extends V> map)
- Specified by:
putAll
in interface Map<K,V>
- Overrides:
putAll
in class Hashtable<K,V>
putAllInverse
public void putAllInverse(Map<? extends V,? extends K> map)
remove
public V remove(Object key)
- Specified by:
remove
in interface Map<K,V>
- Overrides:
remove
in class Hashtable<K,V>
Project home page
Copyright © 2006-2010 Stefano Chizzolini. Some Rights Reserved.
This documentation is available under the terms of the GNU Free Documentation License.