Protege-2000 1.7

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

java.lang.Object
  |
  +--java.util.AbstractMap
        |
        +--java.util.HashMap
              |
              +--edu.stanford.smi.protegex.widget.imagemap.BiMap
All Implemented Interfaces:
Cloneable, Map, Serializable

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

Inner classes inherited from class java.util.Map
Map.Entry
 
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()
Overrides:
clear in class HashMap

clone

public Object clone()
Overrides:
clone in class HashMap

equals

public boolean equals(Object object)
Overrides:
equals in class AbstractMap

getKeysForValue

public Collection getKeysForValue(Object value)

put

public Object put(Object key,
                  Object value)
Overrides:
put in class HashMap

putAll

public void putAll(Map t)
Overrides:
putAll in class HashMap

remove

public Object remove(Object key)
Overrides:
remove in class HashMap

Protege-2000 1.7

Submit a bug report or feature request
Protege-2000 is a trademark of Stanford University.
Copyright (c) 1998-2002 Stanford University.