public class EnumCounter.EventCountMap extends EnumMap<E,AtomicLong>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
EventCountMap(Class<E> keyType) |
| Modifier and Type | Method and Description |
|---|---|
AtomicLong |
get(Object key) |
E |
getEnum(String enumString)
get the enum for the given string
|
AtomicLong |
getN(Object key)
Get the value, if null reset it.
|
AtomicLong |
getO(Object key)
Get the value, the old way.
|
AtomicLong |
getS(Object key)
Get synchronized.
|
long |
getValue(String event)
get the count of given enum stirng
|
boolean |
isAutoCreateValue() |
void |
setAutoCreateValue(boolean autoCreateValue) |
clear, clone, containsKey, containsValue, entrySet, equals, hashCode, keySet, put, putAll, remove, size, valuesisEmpty, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic boolean isAutoCreateValue()
public void setAutoCreateValue(boolean autoCreateValue)
autoCreateValue - the autoCreateValue to setpublic AtomicLong get(Object key)
public AtomicLong getS(Object key)
key - the keypublic AtomicLong getN(Object key)
key - the keypublic AtomicLong getO(Object key)
key - the keypublic E getEnum(String enumString)
enumString - the enum as stringpublic long getValue(String event)
event - the eventCopyright © 2017. All rights reserved.