<divclass="inheritance"title="Inheritance Tree"><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">java.lang.Object</a>
<divclass="inheritance"><ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingObject.html"title="class or interface in com.google.common.collect"class="external-link">com.google.common.collect.ForwardingObject</a>
<divclass="inheritance"><ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.html"title="class or interface in com.google.common.collect"class="external-link">com.google.common.collect.ForwardingMap</a><T,<wbr><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Long.html"title="class or interface in java.lang"class="external-link">Long</a>>
<dd><code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html"title="class or interface in java.util"class="external-link">Map</a><T,<wbr><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Long.html"title="class or interface in java.lang"class="external-link">Long</a>></code></dd>
</dl>
<hr>
<divclass="type-signature"><spanclass="modifiers">public class </span><spanclass="element-name type-name-label">Counter<T></span>
<spanclass="extends-implements">extends <ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.html"title="class or interface in com.google.common.collect"class="external-link">ForwardingMap</a><T,<wbr><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Long.html"title="class or interface in java.lang"class="external-link">Long</a>></span></div>
<h2id="nested-classes-inherited-from-class-com.google.common.collect.ForwardingMap">Nested classes/interfaces inherited from class com.google.common.collect.<ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.html"title="class or interface in com.google.common.collect"class="external-link">ForwardingMap</a></h2>
<code><ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.StandardEntrySet.html"title="class or interface in com.google.common.collect"class="external-link">ForwardingMap.StandardEntrySet</a>, <ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.StandardKeySet.html"title="class or interface in com.google.common.collect"class="external-link">ForwardingMap.StandardKeySet</a>, <ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.StandardValues.html"title="class or interface in com.google.common.collect"class="external-link">ForwardingMap.StandardValues</a></code></div>
<divclass="inherited-list">
<h2id="nested-classes-inherited-from-class-java.util.Map">Nested classes/interfaces inherited from interface java.util.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html"title="class or interface in java.util"class="external-link">Map</a></h2>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.Entry.html"title="class or interface in java.util"class="external-link">Map.Entry</a><<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.Entry.html"title="class or interface in java.util"class="external-link">K</a> extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a>,<wbr><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.Entry.html"title="class or interface in java.util"class="external-link">V</a> extends <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a>></code></div>
<divclass="col-first even-row-color method-summary-table method-summary-table-tab2 method-summary-table-tab4"><code>protected <ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html"title="class or interface in java.util"class="external-link">Map</a><<ahref="Counter.html"title="type parameter in Counter">T</a>,<wbr><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Long.html"title="class or interface in java.lang"class="external-link">Long</a>></code></div>
<h3id="methods-inherited-from-class-com.google.common.collect.ForwardingMap">Methods inherited from class com.google.common.collect.<ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.html"title="class or interface in com.google.common.collect"class="external-link">ForwardingMap</a></h3>
<code><ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.html#clear()"title="class or interface in com.google.common.collect"class="external-link">clear</a>, <ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.html#containsKey(java.lang.Object)"title="class or interface in com.google.common.collect"class="external-link">containsKey</a>, <ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.html#containsValue(java.lang.Object)"title="class or interface in com.google.common.collect"class="external-link">containsValue</a>, <ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.html#entrySet()"title="class or interface in com.google.common.collect"class="external-link">entrySet</a>, <ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.html#equals(java.lang.Object)"title="class or interface in com.google.common.collect"class="external-link">equals</a>, <ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.html#get(java.lang.Object)"title="class or interface in com.google.common.collect"class="external-link">get</a>, <ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.html#hashCode()"title="class or interface in com.google.common.collect"class="external-link">hashCode</a>, <ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.html#isEmpty()"title="class or interface in com.google.common.collect"class="external-link">isEmpty</a>, <ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.html#keySet()"title="class or interface in com.google.common.collect"class="external-link">keySet</a>, <ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.html#put(K,V)"title="class or interface in com.google.common.collect"class="external-link">put</a>, <ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.html#putAll(java.util.Map)"title="class or interface in com.google.common.collect"class="external-link">putAll</a>, <ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.html#remove(java.lang.Object)"title="class or interface in com.google.common.collect"class="external-link">remove</a>, <ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.html#size()"title="class or interface in com.google.common.collect"class="external-link">size</a>, <ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.html#standardClear()"title="class or interface in com.google.common.collect"class="external-link">standardClear</a>, <ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.html#standardContainsKey(java.lang.Object)"title="class or interface in com.google.common.collect"class="external-link">standardContainsKey</a>, <ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.html#standardContainsValue(java.lang.Object)"title="class or interface in com.google.common.collect"class="external-link">standardContainsValue</a>, <ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.html#standardEquals(java.lang.Object)"title="class or interface in com.google.common.collect"class="external-link">standardEquals</a>, <ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.html#standardHashCode()"title="class or interface in com.google.common.collect"class="external-link">standardHashCode</a>, <ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.html#standardIsEmpty()"title="class or interface in com.google.common.collect"class="external-link">standar
<divclass="inherited-list">
<h3id="methods-inherited-from-class-com.google.common.collect.ForwardingObject">Methods inherited from class com.google.common.collect.<ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingObject.html"title="class or interface in com.google.common.collect"class="external-link">ForwardingObject</a></h3>
<code><ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingObject.html#toString()"title="class or interface in com.google.common.collect"class="external-link">toString</a></code></div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-java.lang.Object">Methods inherited from class java.lang.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html"title="class or interface in java.lang"class="external-link">Object</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#clone()"title="class or interface in java.lang"class="external-link">clone</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#finalize()"title="class or interface in java.lang"class="external-link">finalize</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#getClass()"title="class or interface in java.lang"class="external-link">getClass</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notify()"title="class or interface in java.lang"class="external-link">notify</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#notifyAll()"title="class or interface in java.lang"class="external-link">notifyAll</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait()"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long)"title="class or interface in java.lang"class="external-link">wait</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Object.html#wait(long,int)"title="class or interface in java.lang"class="external-link">wait</a></code></div>
<divclass="inherited-list">
<h3id="methods-inherited-from-class-java.util.Map">Methods inherited from interface java.util.<ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html"title="class or interface in java.util"class="external-link">Map</a></h3>
<code><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html#compute(K,java.util.function.BiFunction)"title="class or interface in java.util"class="external-link">compute</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html#computeIfAbsent(K,java.util.function.Function)"title="class or interface in java.util"class="external-link">computeIfAbsent</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html#computeIfPresent(K,java.util.function.BiFunction)"title="class or interface in java.util"class="external-link">computeIfPresent</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html#forEach(java.util.function.BiConsumer)"title="class or interface in java.util"class="external-link">forEach</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html#getOrDefault(java.lang.Object,V)"title="class or interface in java.util"class="external-link">getOrDefault</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html#merge(K,V,java.util.function.BiFunction)"title="class or interface in java.util"class="external-link">merge</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html#putIfAbsent(K,V)"title="class or interface in java.util"class="external-link">putIfAbsent</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html#remove(java.lang.Object,java.lang.Object)"title="class or interface in java.util"class="external-link">remove</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html#replace(K,V)"title="class or interface in java.util"class="external-link">replace</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html#replace(K,V,V)"title="class or interface in java.util"class="external-link">replace</a>, <ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html#replaceAll(java.util.function.BiFunction)"title="class or interface in java.util"class="external-link">replaceAll</a></code></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">long</span> <spanclass="element-name">decrement</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="Counter.html"title="type parameter in Counter">T</a> key)</span></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">long</span> <spanclass="element-name">increment</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="Counter.html"title="type parameter in Counter">T</a> key)</span></div>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">long</span> <spanclass="element-name">decrement</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="Counter.html"title="type parameter in Counter">T</a> key,
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">long</span> <spanclass="element-name">increment</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="Counter.html"title="type parameter in Counter">T</a> key,
long amount)</span></div>
</section>
</li>
<li>
<sectionclass="detail"id="getCount(T)">
<h3id="getCount(java.lang.Object)">getCount</h3>
<divclass="member-signature"><spanclass="modifiers">public</span> <spanclass="return-type">long</span> <spanclass="element-name">getCount</span><wbr><spanclass="parameters">(<ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/Nullable.html"title="class or interface in org.jetbrains.annotations"class="external-link">@Nullable</a>
<ahref="Counter.html"title="type parameter in Counter">T</a> key)</span></div>
</section>
</li>
<li>
<sectionclass="detail"id="delegate()">
<h3>delegate</h3>
<divclass="member-signature"><spanclass="annotations"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a>
</span><spanclass="modifiers">protected</span> <spanclass="return-type"><ahref="https://javadoc.io/doc/org.jetbrains/annotations/23.0.0/org/jetbrains/annotations/NotNull.html"title="class or interface in org.jetbrains.annotations"class="external-link">@NotNull</a><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/util/Map.html"title="class or interface in java.util"class="external-link">Map</a><<ahref="Counter.html"title="type parameter in Counter">T</a>,<wbr><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Long.html"title="class or interface in java.lang"class="external-link">Long</a>></span> <spanclass="element-name">delegate</span>()</div>
<dlclass="notes">
<dt>Specified by:</dt>
<dd><code><ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.html#delegate()"title="class or interface in com.google.common.collect"class="external-link">delegate</a></code> in class <code><ahref="https://guava.dev/releases/31.0.1-jre/api/docs/com/google/common/collect/ForwardingMap.html"title="class or interface in com.google.common.collect"class="external-link">ForwardingMap</a><<ahref="Counter.html"title="type parameter in Counter">T</a>,<wbr><ahref="https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/Long.html"title="class or interface in java.lang"class="external-link">Long</a>></code></dd>