Module xl.core

Class LongToIntHashMap

java.lang.Object
de.grogra.xl.util.LongToIntHashMap
All Implemented Interfaces:
Iterable<LongToIntHashMap.Entry>

public class LongToIntHashMap extends Object implements Iterable<LongToIntHashMap.Entry>
  • Constructor Details

    • LongToIntHashMap

      public LongToIntHashMap(int capacity, float loadFactor)
    • LongToIntHashMap

      public LongToIntHashMap(int capacity)
    • LongToIntHashMap

      public LongToIntHashMap()
  • Method Details

    • isEmpty

      public boolean isEmpty()
    • size

      public int size()
    • clear

      public void clear()
    • add

      public void add(long key, int value)
    • put

      public int put(long key, int value)
    • remove

      public void remove(LongToIntHashMap.Entry entry)
    • remove

      public int remove(long key)
    • remove

      public int remove(long key, int value)
    • removeAll

      public void removeAll(long key)
    • getEntry

      public LongToIntHashMap.Entry getEntry(long key)
    • get

      public int get(long key)
    • get

      public int get(long key, int defaultValue)
    • containsKey

      public boolean containsKey(long key)
    • iterator

      public Iterator<LongToIntHashMap.Entry> iterator()
      Specified by:
      iterator in interface Iterable<LongToIntHashMap.Entry>