PDF Clown
0.1.2

org.pdfclown.util
Class BiMap<K,V>

java.lang.Object
  extended by java.util.Dictionary<K,V>
      extended by java.util.Hashtable<K,V>
          extended by org.pdfclown.util.BiMap<K,V>
All Implemented Interfaces:
Serializable, Cloneable, Map<K,V>

public class BiMap<K,V>
extends Hashtable<K,V>

Bidirectional bijective map.

Since:
0.0.8
Version:
0.1.0
Author:
Stefano Chizzolini (http://www.stefanochizzolini.it)
See Also:
Serialized Form

Constructor Summary
BiMap()
           
BiMap(int initialCapacity)
           
BiMap(Map<? extends K,? extends V> map)
           
 
Method Summary
 boolean contains(Object value)
           
 boolean containsValue(Object value)
           
 K getKey(V value)
           
 V put(K key, V value)
           
 void putAll(Map<? extends K,? extends V> map)
           
 void putAllInverse(Map<? extends V,? extends K> map)
           
 V remove(Object key)
           
 
Methods inherited from class java.util.Hashtable
clear, clone, containsKey, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, rehash, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BiMap

public BiMap()

BiMap

public BiMap(int initialCapacity)

BiMap

public BiMap(Map<? extends K,? extends V> map)
Method Detail

contains

public boolean contains(Object value)
Overrides:
contains in class Hashtable<K,V>

containsValue

public boolean containsValue(Object value)
Specified by:
containsValue in interface Map<K,V>
Overrides:
containsValue in class Hashtable<K,V>

getKey

public K getKey(V value)

put

public V put(K key,
             V value)
Specified by:
put in interface Map<K,V>
Overrides:
put in class Hashtable<K,V>

putAll

public void putAll(Map<? extends K,? extends V> map)
Specified by:
putAll in interface Map<K,V>
Overrides:
putAll in class Hashtable<K,V>

putAllInverse

public void putAllInverse(Map<? extends V,? extends K> map)

remove

public V remove(Object key)
Specified by:
remove in interface Map<K,V>
Overrides:
remove in class Hashtable<K,V>

PDF Clown
0.1.2

Project home page

Copyright © 2006-2013 Stefano Chizzolini. Some Rights Reserved.
This documentation is available under the terms of the GNU Free Documentation License.