public class ConcurrentGroupMap<K,V> extends ConcurrentHashMap<K,V> implements GroupAwareMap<K,V>
ConcurrentHashMap.KeySetView<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) |
compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, forEach, forEach, forEachEntry, forEachEntry, forEachKey, forEachKey, forEachValue, forEachValue, get, getOrDefault, hashCode, isEmpty, keys, keySet, keySet, mappingCount, merge, newKeySet, newKeySet, reduce, reduceEntries, reduceEntries, reduceEntriesToDouble, reduceEntriesToInt, reduceEntriesToLong, reduceKeys, reduceKeys, reduceKeysToDouble, reduceKeysToInt, reduceKeysToLong, reduceToDouble, reduceToInt, reduceToLong, reduceValues, reduceValues, reduceValuesToDouble, reduceValuesToInt, reduceValuesToLong, replaceAll, search, searchEntries, searchKeys, searchValues, size, toString, values
clone
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, replaceAll, size, values
public boolean includesKey(Object key)
includesKey
in interface GroupAwareMap<K,V>
key
- 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 interface Map<K,V>
putIfAbsent
in class ConcurrentHashMap<K,V>
Copyright © 2003-2008 Jive Software.