de.grogra.xl.util
Class BidirectionalHashMap<K,V>

java.lang.Object
  extended by de.grogra.xl.util.BidirectionalHashMap<K,V>

public class BidirectionalHashMap<K,V>
extends java.lang.Object


Constructor Summary
BidirectionalHashMap()
           
 
Method Summary
 boolean containsKey(K key)
           
 boolean containsValue(V value)
           
 V get(K key)
           
 K getKey(V value)
           
 java.util.Collection<K> getKeyMap()
           
 java.util.Collection<V> getValueMap()
           
 void put(K key, V value)
           
 int size()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BidirectionalHashMap

public BidirectionalHashMap()
Method Detail

containsKey

public boolean containsKey(K key)

containsValue

public boolean containsValue(V value)

get

public V get(K key)

getKey

public K getKey(V value)

getKeyMap

public java.util.Collection<K> getKeyMap()

getValueMap

public java.util.Collection<V> getValueMap()

put

public void put(K key,
                V value)

size

public int size()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object