|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 |
| 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 by the order that 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)
public static Map instantiateSequenced(int size)
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 Mappublic boolean isEmpty()
isEmpty in interface Mappublic boolean containsKey(Object key)
containsKey in interface Mappublic boolean containsValue(Object val)
containsValue in interface Mappublic Object get(Object key)
get in interface Map
public Object put(Object key,
Object value)
put in interface Mappublic Object remove(Object key)
remove in interface Mappublic void putAll(Map otherMap)
putAll in interface Mappublic void clear()
clear in interface Mappublic Set keySet()
keySet in interface Mappublic Collection values()
values in interface Mappublic Set entrySet()
entrySet in interface Mappublic 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 Objectpublic static Map invert(Map map)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||