public final class IdentityMap<K,V>
extends java.lang.Object
implements java.util.Map<K,V>
Modifier and Type | Class and Description |
---|---|
static class |
IdentityMap.IdentityKey<K> |
static class |
IdentityMap.IdentityMapEntry<K,V> |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
static <K,V> java.util.Map.Entry<K,V>[] |
concurrentEntries(java.util.Map<K,V> 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) |
java.util.Map.Entry[] |
entryArray() |
java.util.Set<java.util.Map.Entry<K,V>> |
entrySet() |
V |
get(java.lang.Object key) |
static <K,V> IdentityMap<K,V> |
instantiateSequenced(int size)
Return a new instance of this class, with iteration
order defined as the order in which entries were added
|
boolean |
isEmpty() |
java.util.Iterator<K> |
keyIterator() |
java.util.Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(java.util.Map<? extends K,? extends V> otherMap) |
V |
remove(java.lang.Object key) |
int |
size() |
java.lang.String |
toString() |
java.util.Collection<V> |
values() |
public static <K,V> IdentityMap<K,V> instantiateSequenced(int size)
size
- The size of the map to createpublic static <K,V> java.util.Map.Entry<K,V>[] concurrentEntries(java.util.Map<K,V> map)
map
- The map of entriespublic java.util.Iterator<K> keyIterator()
public boolean containsKey(java.lang.Object key)
public boolean containsValue(java.lang.Object val)
public java.util.Map.Entry[] entryArray()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.