de.fraunhofer.ipsi.util
Class BidirectedEnvironmentMap<K,V>

java.lang.Object
  extended by de.fraunhofer.ipsi.util.EnvironmentMap<K,V>
      extended by de.fraunhofer.ipsi.util.BidirectedEnvironmentMap<K,V>
All Implemented Interfaces:
BidirectedEnvironment<K,V>, Environment<K,V>, java.lang.Cloneable

public class BidirectedEnvironmentMap<K,V>
extends EnvironmentMap<K,V>
implements BidirectedEnvironment<K,V>

An extension of the EnvironmentMap, allowing for lookup in either direction.

Author:
Michael Stark created on 17.01.2004

Constructor Summary
BidirectedEnvironmentMap()
          Constructor
 
Method Summary
 java.lang.Object clone()
          Method clone
 void declare(K key, V value)
          Method declare
 void remove(K key)
          Method remove
 K reverseLookup(V value)
          Method reverseLookup
 
Methods inherited from class de.fraunhofer.ipsi.util.EnvironmentMap
contains, keys, lookup, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.fraunhofer.ipsi.util.Environment
contains, keys, lookup
 

Constructor Detail

BidirectedEnvironmentMap

public BidirectedEnvironmentMap()
Constructor

Method Detail

reverseLookup

public K reverseLookup(V value)
Method reverseLookup

Specified by:
reverseLookup in interface BidirectedEnvironment<K,V>
Parameters:
value - a V
Returns:
a K

declare

public void declare(K key,
                    V value)
Method declare

Specified by:
declare in interface Environment<K,V>
Overrides:
declare in class EnvironmentMap<K,V>
Parameters:
key - an Object
value - an Object

remove

public void remove(K key)
Method remove

Specified by:
remove in interface Environment<K,V>
Overrides:
remove in class EnvironmentMap<K,V>
Parameters:
key - an Object

clone

public java.lang.Object clone()
Method clone

Specified by:
clone in interface Environment<K,V>
Overrides:
clone in class EnvironmentMap<K,V>
Returns:
an Object