Class Counter<T>

java.lang.Object
com.google.common.collect.ForwardingObject
com.google.common.collect.ForwardingMap<T,Long>
co.aikar.util.Counter<T>
All Implemented Interfaces:
Map<T,Long>

@Deprecated(forRemoval=true) public class Counter<T> extends com.google.common.collect.ForwardingMap<T,Long>
Deprecated, for removal: This API element is subject to removal in a future version.
  • Nested Class Summary

    Nested classes/interfaces inherited from class com.google.common.collect.ForwardingMap

    com.google.common.collect.ForwardingMap.StandardEntrySet, com.google.common.collect.ForwardingMap.StandardKeySet, com.google.common.collect.ForwardingMap.StandardValues

    Nested classes/interfaces inherited from interface Map

    Map.Entry<K,V>
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    decrement(T key)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    decrement(T key, long amount)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    protected @NotNull Map<T,Long>
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    getCount(T key)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    increment(T key)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    long
    increment(T key, long amount)
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class com.google.common.collect.ForwardingMap

    clear, containsKey, containsValue, entrySet, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, standardClear, standardContainsKey, standardContainsValue, standardEquals, standardHashCode, standardIsEmpty, standardPutAll, standardRemove, standardToString, values

    Methods inherited from class com.google.common.collect.ForwardingObject

    toString

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Counter

      public Counter()
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • decrement

      public long decrement(@Nullable T key)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • increment

      public long increment(@Nullable T key)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • decrement

      public long decrement(@Nullable T key, long amount)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • increment

      public long increment(@Nullable T key, long amount)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getCount

      public long getCount(@Nullable T key)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • delegate

      @NotNull protected @NotNull Map<T,Long> delegate()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Specified by:
      delegate in class com.google.common.collect.ForwardingMap<T,Long>