Class HashMapLongInt

    • Constructor Detail

      • HashMapLongInt

        public HashMapLongInt​(int arrSize)
    • Method Detail

      • size

        public int size()
      • putIfAbsent

        public int putIfAbsent​(long key,
                               int value)
        return -1 if there was no such key.
        Parameters:
        key - the key to add
        value - The value for that key.
        Returns:
        -1 if there was no such key, otherwise the value
      • get

        public int get​(long key)