Class PrimitiveFastutilIntIntWrapper
java.lang.Object
com.trivago.fastutilconcurrentwrapper.wrapper.PrimitiveFastutilIntIntWrapper
- All Implemented Interfaces:
IntIntMap,PrimitiveIntKeyMap,PrimitiveKeyMap
-
Field Summary
Fields inherited from interface com.trivago.fastutilconcurrentwrapper.IntIntMap
DEFAULT_VALUE -
Constructor Summary
ConstructorsConstructorDescriptionPrimitiveFastutilIntIntWrapper(int initialCapacity, float loadFactor, int defaultValue) -
Method Summary
Modifier and TypeMethodDescriptionintcomputeIfAbsent(int key, it.unimi.dsi.fastutil.ints.Int2IntFunction mappingFunction) intcomputeIfPresent(int key, BiFunction<Integer, Integer, Integer> mappingFunction) booleancontainsKey(int key) intget(int key) intbooleanisEmpty()intput(int key, int value) intremove(int key) booleanremove(int key, int value) intsize()
-
Constructor Details
-
PrimitiveFastutilIntIntWrapper
public PrimitiveFastutilIntIntWrapper(int initialCapacity, float loadFactor, int defaultValue)
-
-
Method Details
-
get
public int get(int key) -
put
public int put(int key, int value) -
getDefaultValue
public int getDefaultValue()- Specified by:
getDefaultValuein interfaceIntIntMap
-
remove
public int remove(int key) -
remove
public boolean remove(int key, int value) -
size
public int size()- Specified by:
sizein interfacePrimitiveKeyMap
-
containsKey
public boolean containsKey(int key) - Specified by:
containsKeyin interfacePrimitiveIntKeyMap
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacePrimitiveKeyMap
-
computeIfAbsent
public int computeIfAbsent(int key, it.unimi.dsi.fastutil.ints.Int2IntFunction mappingFunction) - Specified by:
computeIfAbsentin interfaceIntIntMap
-
computeIfPresent
- Specified by:
computeIfPresentin interfaceIntIntMap
-