|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.concurrent.ConcurrentHashMap<K,V>
com.ebmwebsourcing.easycommons.thread.ConcurrentHashMapWithDefaults<K,V>
K - V - public class ConcurrentHashMapWithDefaults<K,V>
This class extends the usual ConcurrentHashMap behaviour by possibly
returning a default value from a parent map.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.util.AbstractMap |
|---|
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
| Nested classes/interfaces inherited from interface java.util.Map |
|---|
java.util.Map.Entry<K,V> |
| Constructor Summary | |
|---|---|
ConcurrentHashMapWithDefaults()
|
|
ConcurrentHashMapWithDefaults(java.util.Map<K,V> defaults)
|
|
| Method Summary | |
|---|---|
java.util.Map<K,V> |
getDefaults()
|
V |
getValueOrDefault(java.lang.Object key)
|
| Methods inherited from class java.util.concurrent.ConcurrentHashMap |
|---|
clear, contains, containsKey, containsValue, elements, entrySet, get, isEmpty, keys, keySet, put, putAll, putIfAbsent, remove, remove, replace, replace, size, values |
| Methods inherited from class java.util.AbstractMap |
|---|
clone, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.Map |
|---|
equals, hashCode |
| Constructor Detail |
|---|
public ConcurrentHashMapWithDefaults()
public ConcurrentHashMapWithDefaults(java.util.Map<K,V> defaults)
| Method Detail |
|---|
public final java.util.Map<K,V> getDefaults()
public V getValueOrDefault(java.lang.Object key)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||