Interface LongIntMap

All Superinterfaces:
PrimitiveKeyMap, PrimitiveLongKeyMap
All Known Implementing Classes:
ConcurrentBusyWaitingLongIntMap, ConcurrentLongIntMap, PrimitiveFastutilLongIntWrapper

public interface LongIntMap extends PrimitiveLongKeyMap
  • Field Details

  • Method Details

    • get

      int get(long key)
      Parameters:
      key - key to get
      Returns:
      configured LongIntMap.getDefaultValue(), if the key is not present
    • put

      int put(long key, int value)
    • getDefaultValue

      int getDefaultValue()
    • remove

      int remove(long key)
    • remove

      boolean remove(long key, int value)
    • computeIfAbsent

      int computeIfAbsent(long key, it.unimi.dsi.fastutil.longs.Long2IntFunction mappingFunction)
    • computeIfPresent

      int computeIfPresent(long key, BiFunction<Long,Integer,Integer> mappingFunction)