Protege 3.4.3

edu.stanford.smi.protegex.widget.imagemap
Class BiMap

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap
          extended by 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

Constructor Summary
BiMap()
           
BiMap(BiMap biMap)
           
 
Method Summary
 void clear()
           
 Object clone()
           
 boolean equals(Object object)
           
 Collection getKeysForValue(Object value)
           
 Object put(Object key, Object value)
           
 void putAll(Map t)
           
 Object remove(Object key)
           
 
Methods inherited from class java.util.HashMap
containsKey, containsValue, entrySet, get, isEmpty, keySet, size, values
 
Methods inherited from class java.util.AbstractMap
hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
hashCode
 

Constructor Detail

BiMap

public BiMap()

BiMap

public BiMap(BiMap biMap)
Method Detail

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

Protege 3.4.3

Submit a bug report or feature request