public class ConcurrentGroupMap<K,V> extends ConcurrentHashMap<K,V> implements GroupAwareMap<K,V>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
ConcurrentGroupMap() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
Set<Group> |
getGroupsFromKeys()
Returns the groups that are implied (resolvable) from the keys in the map.
|
Set<Group> |
getGroupsFromValues()
Returns the groups that are implied (resolvable) from the values in the map.
|
boolean |
includesKey(Object key)
Returns true if the key list contains the given JID.
|
boolean |
includesValue(Object value)
Returns true if the map has an entry value matching the given JID.
|
V |
put(K key,
V value) |
void |
putAll(Map<? extends K,? extends V> m) |
V |
putIfAbsent(K key,
V value) |
V |
remove(Object key) |
boolean |
remove(Object key,
Object value) |
V |
replace(K key,
V value) |
boolean |
replace(K key,
V oldValue,
V newValue) |
contains, containsKey, containsValue, elements, entrySet, get, isEmpty, keys, keySet, size, valuesclone, equals, hashCode, toStringpublic boolean includesKey(Object key)
includesKey in interface GroupAwareMap<K,V>o - The target, presumably a JIDpublic boolean includesValue(Object value)
includesValue in interface GroupAwareMap<K,V>value - The target, presumably a JIDpublic Set<Group> getGroupsFromKeys()
getGroupsFromKeys in interface GroupAwareMap<K,V>public Set<Group> getGroupsFromValues()
getGroupsFromValues in interface GroupAwareMap<K,V>public V putIfAbsent(K key, V value)
putIfAbsent in interface ConcurrentMap<K,V>putIfAbsent in class ConcurrentHashMap<K,V>public boolean remove(Object key, Object value)
remove in interface ConcurrentMap<K,V>remove in class ConcurrentHashMap<K,V>public boolean replace(K key, V oldValue, V newValue)
replace in interface ConcurrentMap<K,V>replace in class ConcurrentHashMap<K,V>public V replace(K key, V value)
replace in interface ConcurrentMap<K,V>replace in class ConcurrentHashMap<K,V>Copyright © 2003-2008 Jive Software.