public class Counter<T> extends ForwardingMap<T,Long>
ForwardingMap.StandardEntrySet, ForwardingMap.StandardKeySet, ForwardingMap.StandardValues| Constructor and Description |
|---|
Counter() |
| Modifier and Type | Method and Description |
|---|---|
long |
decrement(T key) |
long |
decrement(T key,
long amount) |
protected @NotNull Map<T,Long> |
delegate() |
long |
getCount(T key) |
long |
increment(T key) |
long |
increment(T key,
long amount) |
clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, standardClear, standardContainsKey, standardContainsValue, standardEquals, standardHashCode, standardIsEmpty, standardPutAll, standardRemove, standardToString, valuestoStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllCopyright © 2022. All rights reserved.