|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.util.IdentityMap
public final class IdentityMap
A Map where keys are compared by object identity, rather than equals().
Nested Class Summary | |
---|---|
static class |
IdentityMap.IdentityKey
|
static class |
IdentityMap.IdentityMapEntry
|
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Method Summary | |
---|---|
void |
clear()
|
static Map.Entry[] |
concurrentEntries(Map map)
Return the map entries (as instances of Map.Entry in a collection that is safe from concurrent modification). |
boolean |
containsKey(Object key)
|
boolean |
containsValue(Object val)
|
static Map |
deserialize(Object o)
Workaround for a JDK 1.4.1 bug where IdentityHashMaps are not correctly deserialized. |
static List |
entries(Map map)
|
Map.Entry[] |
entryArray()
|
List |
entryList()
|
Set |
entrySet()
|
Object |
get(Object key)
|
static Map |
instantiate(int size)
Return a new instance of this class, with an undefined iteration order. |
static Map |
instantiateSequenced(int size)
Return a new instance of this class, with iteration order defined as the order in which entries were added |
static Map |
invert(Map map)
|
boolean |
isEmpty()
|
Iterator |
keyIterator()
|
static Iterator |
keyIterator(Map map)
|
Set |
keySet()
|
Object |
put(Object key,
Object value)
|
void |
putAll(Map otherMap)
|
Object |
remove(Object key)
|
static Object |
serialize(Map map)
Workaround for a JDK 1.4.1 bug where IdentityHashMaps are not correctly deserialized. |
int |
size()
|
String |
toString()
|
Collection |
values()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
equals, hashCode |
Method Detail |
---|
public static Map instantiate(int size)
size
- The size of the map
public static Map instantiateSequenced(int size)
size
- The size of the map to create
public static Map.Entry[] concurrentEntries(Map map)
map
-
public static List entries(Map map)
public static Iterator keyIterator(Map map)
public Iterator keyIterator()
public int size()
size
in interface Map
public boolean isEmpty()
isEmpty
in interface Map
public boolean containsKey(Object key)
containsKey
in interface Map
public boolean containsValue(Object val)
containsValue
in interface Map
public Object get(Object key)
get
in interface Map
public Object put(Object key, Object value)
put
in interface Map
public Object remove(Object key)
remove
in interface Map
public void putAll(Map otherMap)
putAll
in interface Map
public void clear()
clear
in interface Map
public Set keySet()
keySet
in interface Map
public Collection values()
values
in interface Map
public Set entrySet()
entrySet
in interface Map
public List entryList()
public Map.Entry[] entryArray()
public static Object serialize(Map map)
map
-
public static Map deserialize(Object o)
o
-
public String toString()
toString
in class Object
public static Map invert(Map map)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |