Class HashMapIntToInt
java.lang.Object
org.apache.sysds.runtime.compress.utils.HashMapIntToInt
-
Nested Class Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(Object key) booleancontainsValue(Object value) entrySet()voidforEach(BiConsumer<? super Integer, ? super Integer> action) intgetI(int key) inthash(int key) booleanisEmpty()keySet()voidintputI(int key, int value) putIfAbsent(Integer key, Integer value) intputIfAbsentI(int key, int value) intputIfAbsentReturnVal(int key, int value) intputIfAbsentReturnValHash(int key, int value) intsize()toString()values()Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, getOrDefault, hashCode, merge, remove, replace, replace, replaceAll
-
Constructor Details
-
HashMapIntToInt
public HashMapIntToInt(int capacity)
-
-
Method Details
-
size
public int size() -
isEmpty
public boolean isEmpty() -
containsKey
- Specified by:
containsKeyin interfaceMap<Integer,Integer>
-
containsValue
- Specified by:
containsValuein interfaceMap<Integer,Integer>
-
get
-
getI
public int getI(int key) -
hash
public int hash(int key) -
put
-
putIfAbsent
- Specified by:
putIfAbsentin interfaceMap<Integer,Integer>
-
putIfAbsentI
public int putIfAbsentI(int key, int value) -
putIfAbsentReturnVal
public int putIfAbsentReturnVal(int key, int value) -
putIfAbsentReturnValHash
public int putIfAbsentReturnValHash(int key, int value) -
putI
public int putI(int key, int value) -
remove
-
putAll
-
clear
public void clear() -
keySet
-
values
-
entrySet
-
forEach
-
toString
-