net.sf.morph.util
Class BidirectionalMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap
net.sf.morph.util.BidirectionalMap
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map
public class BidirectionalMap
- extends java.util.HashMap
- Since:
- Jan 16, 2005
- Author:
- Matt Sgarlata
- See Also:
- Serialized Form
Method Summary |
void |
clear()
|
java.lang.Object |
clone()
|
static BidirectionalMap |
getInstance(java.util.Map m)
|
java.lang.Object |
getKey(java.lang.Object entry)
Retrieves the key that is registered for the given entry |
java.util.Map |
getReverseMap()
|
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
|
java.lang.Object |
remove(java.lang.Object key)
|
Methods inherited from class java.util.HashMap |
containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, size, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
BidirectionalMap
public BidirectionalMap()
BidirectionalMap
public BidirectionalMap(int initialCapacity)
BidirectionalMap
public BidirectionalMap(int initialCapacity,
float loadFactor)
BidirectionalMap
public BidirectionalMap(java.util.Map m)
getInstance
public static BidirectionalMap getInstance(java.util.Map m)
getKey
public java.lang.Object getKey(java.lang.Object entry)
- Retrieves the key that is registered for the given entry
clear
public void clear()
- Specified by:
clear
in interface java.util.Map
- Overrides:
clear
in class java.util.HashMap
clone
public java.lang.Object clone()
- Overrides:
clone
in class java.util.HashMap
put
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
- Specified by:
put
in interface java.util.Map
- Overrides:
put
in class java.util.HashMap
remove
public java.lang.Object remove(java.lang.Object key)
- Specified by:
remove
in interface java.util.Map
- Overrides:
remove
in class java.util.HashMap
getReverseMap
public java.util.Map getReverseMap()
Copyright © 2004-2008.