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

java.lang.Object
  extended by de.fraunhofer.ipsi.util.EnvironmentMultiMap<K,V>
All Implemented Interfaces:
Environment<K,V>, java.lang.Cloneable
Direct Known Subclasses:
BidirectedEnvironmentMultiMap

public class EnvironmentMultiMap<K,V>
extends java.lang.Object
implements Environment<K,V>


Constructor Summary
EnvironmentMultiMap()
          Constructor
 
Method Summary
 java.lang.Object clone()
          Method clone
 boolean contains(K key)
          Method contains
 void declare(K key, V value)
          Method declare
 java.util.Collection<K> keys()
          Method keys
 V lookup(K key)
          Method lookup
 void remove(K key)
          Method remove
 java.lang.String toString()
          Method toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnvironmentMultiMap

public EnvironmentMultiMap()
Constructor

Method Detail

contains

public boolean contains(K key)
Method contains

Specified by:
contains in interface Environment<K,V>
Parameters:
key - an Object
Returns:
a boolean

declare

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

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

keys

public java.util.Collection<K> keys()
Method keys

Specified by:
keys in interface Environment<K,V>
Returns:
a Collection

lookup

public V lookup(K key)
Method lookup

Specified by:
lookup in interface Environment<K,V>
Parameters:
key - an Object
Returns:
an Object

remove

public void remove(K key)
Method remove

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

toString

public java.lang.String toString()
Method toString

Overrides:
toString in class java.lang.Object
Returns:
a String

clone

public java.lang.Object clone()
Method clone

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