edu.stanford.smi.protegex.widget.imagemap
Class BiMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap
edu.stanford.smi.protegex.widget.imagemap.BiMap
- All Implemented Interfaces:
- Serializable, Cloneable, Map
public class BiMap
- extends HashMap
Two directional map. Two parts to this: An over-ride of several HashMap
methods (to implement the BiMap indexing) and a new method, getKeysForValue,
to allow access to the BiMap functionality.
- Author:
- William Grosso
- See Also:
- Serialized Form
Methods inherited from interface java.util.Map |
hashCode |
BiMap
public BiMap()
BiMap
public BiMap(BiMap biMap)
clear
public void clear()
- Specified by:
clear
in interface Map
- Overrides:
clear
in class HashMap
clone
public Object clone()
- Overrides:
clone
in class HashMap
equals
public boolean equals(Object object)
- Specified by:
equals
in interface Map
- Overrides:
equals
in class AbstractMap
getKeysForValue
public Collection getKeysForValue(Object value)
put
public Object put(Object key,
Object value)
- Specified by:
put
in interface Map
- Overrides:
put
in class HashMap
putAll
public void putAll(Map t)
- Specified by:
putAll
in interface Map
- Overrides:
putAll
in class HashMap
remove
public Object remove(Object key)
- Specified by:
remove
in interface Map
- Overrides:
remove
in class HashMap
Submit a bug report or feature request