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 void
clear()
boolean
containsKey(Object key)
boolean
containsValue(Object value)
Set<Map.Entry<K,Integer>>
entrySet()
void
forEach(BiConsumer<? super K,? super Integer> action)
Integer
get(Object key)
int
getI(K key)
int
hash(K key)
Array<K>
inverse(Types.ValueType t)
boolean
isEmpty()
Set<K>
keySet()
Integer
put(K key, Integer value)
void
putAll(Map<? extends K,? extends Integer> m)
int
putI(K key, int value)
Integer
putIfAbsent(K key, Integer value)
int
putIfAbsentI(K key, int value)
int
putIfAbsentReturnVal(K key, int value)
Integer
remove(Object key)
int
size()
String
toString()
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:
containsKey
in interfaceMap<K,Integer>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in 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:
putIfAbsent
in 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)
-
-