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> Map.Entry<K,V>[] |
concurrentEntries(Map<K,V> 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) |
Map.Entry[] |
entryArray() |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(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() |
Iterator<K> |
keyIterator() |
Set<K> |
keySet() |
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> otherMap) |
V |
remove(Object key) |
int |
size() |
String |
toString() |
Collection<V> |
values() |
public static <K,V> IdentityMap<K,V> instantiateSequenced(int size)
size
- The size of the map to createpublic static <K,V> Map.Entry<K,V>[] concurrentEntries(Map<K,V> map)
map
- The map of entriespublic boolean containsKey(Object key)
containsKey
in interface Map<K,V>
public boolean containsValue(Object val)
containsValue
in interface Map<K,V>
public Map.Entry[] entryArray()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.