Class LongObjectHashMap<T>

java.lang.Object
one.nio.mem.LongHashSet
one.nio.mem.LongObjectHashMap<T>

public class LongObjectHashMap<T> extends LongHashSet
  • Field Details

    • base

      private static final long base
    • shift

      private static final int shift
    • values

      protected final Object[] values
  • Constructor Details

    • LongObjectHashMap

      public LongObjectHashMap(int capacity)
  • Method Details

    • get

      public T get(long key)
    • put

      public void put(long key, T value)
    • replace

      public boolean replace(long key, T oldValue, T newValue)
    • replace

      public T replace(long key, T newValue)
    • remove

      public T remove(long key)
    • valueAt

      public final T valueAt(int index)
    • setValueAt

      public final void setValueAt(int index, T value)
    • replaceValueAt

      public final T replaceValueAt(int index, T newValue)
    • clear

      public void clear()
      Description copied from class: LongHashSet
      This method is not atomic and must not be invoked concurrently with other modification methods (e.g., LongHashSet.putKey(long) or LongHashSet.removeKey(long))
      Overrides:
      clear in class LongHashSet
    • offset

      private static long offset(int index)