public final class IdentityMap
extends java.lang.Object
implements java.util.Map
| Modifier and Type | Class and Description |
|---|---|
static class |
IdentityMap.IdentityKey |
static class |
IdentityMap.IdentityMapEntry |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
static java.util.Map.Entry[] |
concurrentEntries(java.util.Map map)
Return the map entries (as instances of Map.Entry in a collection that
is safe from concurrent modification).
|
boolean |
containsKey(java.lang.Object key) |
boolean |
containsValue(java.lang.Object val) |
static java.util.Map |
deserialize(java.lang.Object o)
Workaround for a JDK 1.4.1 bug where IdentityHashMaps are not
correctly deserialized.
|
static java.util.List |
entries(java.util.Map map) |
java.util.Map.Entry[] |
entryArray() |
java.util.List |
entryList() |
java.util.Set |
entrySet() |
java.lang.Object |
get(java.lang.Object key) |
static java.util.Map |
instantiate(int size)
Return a new instance of this class, with an undefined
iteration order.
|
static java.util.Map |
instantiateSequenced(int size)
Return a new instance of this class, with iteration
order defined as the order in which entries were added
|
static java.util.Map |
invert(java.util.Map map) |
boolean |
isEmpty() |
java.util.Iterator |
keyIterator() |
static java.util.Iterator |
keyIterator(java.util.Map map) |
java.util.Set |
keySet() |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value) |
void |
putAll(java.util.Map otherMap) |
java.lang.Object |
remove(java.lang.Object key) |
static java.lang.Object |
serialize(java.util.Map map)
Workaround for a JDK 1.4.1 bug where IdentityHashMaps are not
correctly deserialized.
|
int |
size() |
java.lang.String |
toString() |
java.util.Collection |
values() |
public static java.util.Map instantiate(int size)
size - The size of the mappublic static java.util.Map instantiateSequenced(int size)
size - The size of the map to createpublic static java.util.Map.Entry[] concurrentEntries(java.util.Map map)
map - public static java.util.List entries(java.util.Map map)
public static java.util.Iterator keyIterator(java.util.Map map)
public java.util.Iterator keyIterator()
public int size()
size in interface java.util.Mappublic boolean isEmpty()
isEmpty in interface java.util.Mappublic boolean containsKey(java.lang.Object key)
containsKey in interface java.util.Mappublic boolean containsValue(java.lang.Object val)
containsValue in interface java.util.Mappublic java.lang.Object get(java.lang.Object key)
get in interface java.util.Mappublic java.lang.Object put(java.lang.Object key,
java.lang.Object value)
put in interface java.util.Mappublic java.lang.Object remove(java.lang.Object key)
remove in interface java.util.Mappublic void putAll(java.util.Map otherMap)
putAll in interface java.util.Mappublic void clear()
clear in interface java.util.Mappublic java.util.Set keySet()
keySet in interface java.util.Mappublic java.util.Collection values()
values in interface java.util.Mappublic java.util.Set entrySet()
entrySet in interface java.util.Mappublic java.util.List entryList()
public java.util.Map.Entry[] entryArray()
public static java.lang.Object serialize(java.util.Map map)
map - public static java.util.Map deserialize(java.lang.Object o)
o - public java.lang.String toString()
toString in class java.lang.Objectpublic static java.util.Map invert(java.util.Map map)
Copyright © 2013. All Rights Reserved.