org.eclipse.swtbot.swt.finder.utils
Class BidiMap<K,V>
java.lang.Object
org.eclipse.swtbot.swt.finder.utils.BidiMap<K,V>
- All Implemented Interfaces:
- Iterable<Map.Entry<K,V>>
public class BidiMap<K,V>
- extends Object
- implements Iterable<Map.Entry<K,V>>
Note: This is not error proof, and adding the same key twice with a different value will have uncertain
results.
- Version:
- $Id$
- Author:
- Ketan Padegaonkar <KetanPadegaonkar [at] gmail [dot] com>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BidiMap
public BidiMap()
put
public void put(K k,
V v)
getKey
public K getKey(V v)
size
public int size()
iterator
public Iterator<Map.Entry<K,V>> iterator()
- Specified by:
iterator
in interface Iterable<Map.Entry<K,V>>
getValue
public V getValue(K k)