Class ReferenceCountMap

    • Nested Class Summary

      • Nested classes/interfaces inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2IntMap

        it.unimi.dsi.fastutil.longs.AbstractLong2IntMap.BasicEntry, it.unimi.dsi.fastutil.longs.AbstractLong2IntMap.BasicEntrySet
      • Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.Hash

        it.unimi.dsi.fastutil.Hash.Strategy<K extends Object>
      • Nested classes/interfaces inherited from interface it.unimi.dsi.fastutil.longs.Long2IntMap

        it.unimi.dsi.fastutil.longs.Long2IntMap.Entry, it.unimi.dsi.fastutil.longs.Long2IntMap.FastEntrySet
    • Field Summary

      • Fields inherited from class it.unimi.dsi.fastutil.longs.Long2IntOpenHashMap

        containsNullKey, entries, f, key, keys, mask, maxFill, minN, n, size, value, values
      • Fields inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2IntFunction

        defRetValue
      • Fields inherited from interface it.unimi.dsi.fastutil.Hash

        DEFAULT_GROWTH_FACTOR, DEFAULT_INITIAL_SIZE, DEFAULT_LOAD_FACTOR, FAST_LOAD_FACTOR, FREE, OCCUPIED, PRIMES, REMOVED, VERY_FAST_LOAD_FACTOR
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int decrementAndGet​(Object key)
      Decrements the reference count of an object by 1 and returns the updated reference count
      int incrementAndGet​(Object key)
      Increments the reference count of an object by 1 and returns the updated reference count
      long sizeOf()
      Returns the size of this map in bytes.
      • Methods inherited from class it.unimi.dsi.fastutil.longs.Long2IntOpenHashMap

        addTo, clear, clone, compute, computeIfAbsent, computeIfAbsentNullable, computeIfPresent, containsKey, containsValue, get, getOrDefault, hashCode, isEmpty, keySet, long2IntEntrySet, merge, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, shiftKeys, size, trim, trim, values
      • Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2IntMap

        equals, toString
      • Methods inherited from class it.unimi.dsi.fastutil.longs.AbstractLong2IntFunction

        defaultReturnValue, defaultReturnValue
      • Methods inherited from interface it.unimi.dsi.fastutil.Function

        apply
      • Methods inherited from interface it.unimi.dsi.fastutil.longs.Long2IntFunction

        applyAsInt
      • Methods inherited from interface it.unimi.dsi.fastutil.longs.Long2IntMap

        compute, computeIfAbsent, computeIfAbsentPartial, computeIfPresent, containsKey, containsValue, defaultReturnValue, defaultReturnValue, entrySet, get, getOrDefault, merge, put, putIfAbsent, remove, remove, replace, replace
    • Constructor Detail

      • ReferenceCountMap

        public ReferenceCountMap()
    • Method Detail

      • incrementAndGet

        public int incrementAndGet​(Object key)
        Increments the reference count of an object by 1 and returns the updated reference count
      • decrementAndGet

        public int decrementAndGet​(Object key)
        Decrements the reference count of an object by 1 and returns the updated reference count
      • sizeOf

        public long sizeOf()
        Returns the size of this map in bytes.