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, values
toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
Copyright © 2021. All rights reserved.