Class HashMapToInt<K>
- java.lang.Object
-
- org.apache.sysds.runtime.frame.data.columns.HashMapToInt<K>
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<K,Integer>
public class HashMapToInt<K> extends Object implements Map<K,Integer>, Serializable, Cloneable
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description HashMapToInt(int capacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<K,Integer>>entrySet()voidforEach(BiConsumer<? super K,? super Integer> action)Integerget(Object key)intgetI(K key)inthash(K key)Array<K>inverse(Types.ValueType t)booleanisEmpty()Set<K>keySet()Integerput(K key, Integer value)voidputAll(Map<? extends K,? extends Integer> m)intputI(K key, int value)IntegerputIfAbsent(K key, Integer value)intputIfAbsentI(K key, int value)intputIfAbsentReturnVal(K key, int value)Integerremove(Object key)intsize()StringtoString()Collection<Integer>values()-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, equals, getOrDefault, hashCode, merge, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<K,Integer>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<K,Integer>
-
getI
public int getI(K key)
-
hash
public int hash(K key)
-
putIfAbsent
public Integer putIfAbsent(K key, Integer value)
- Specified by:
putIfAbsentin interfaceMap<K,Integer>
-
putIfAbsentI
public int putIfAbsentI(K key, int value)
-
putIfAbsentReturnVal
public int putIfAbsentReturnVal(K key, int value)
-
putI
public int putI(K key, int value)
-
forEach
public void forEach(BiConsumer<? super K,? super Integer> action)
-
inverse
public Array<K> inverse(Types.ValueType t)
-
-