Class ConcurrentBusyWaitingIntFloatMap
java.lang.Object
com.trivago.fastutilconcurrentwrapper.map.PrimitiveConcurrentMap
com.trivago.fastutilconcurrentwrapper.map.ConcurrentBusyWaitingIntFloatMap
- All Implemented Interfaces:
IntFloatMap,PrimitiveIntKeyMap,PrimitiveKeyMap
-
Field Summary
Fields inherited from class com.trivago.fastutilconcurrentwrapper.map.PrimitiveConcurrentMap
locks, numBucketsFields inherited from interface com.trivago.fastutilconcurrentwrapper.IntFloatMap
DEFAULT_VALUE -
Constructor Summary
ConstructorsConstructorDescriptionConcurrentBusyWaitingIntFloatMap(int numBuckets, int initialCapacity, float loadFactor, float defaultValue) -
Method Summary
Modifier and TypeMethodDescriptionfloatcomputeIfAbsent(int key, it.unimi.dsi.fastutil.ints.Int2FloatFunction mappingFunction) floatcomputeIfPresent(int key, BiFunction<Integer, Float, Float> mappingFunction) booleancontainsKey(int key) floatget(int key) floatbooleanisEmpty()floatput(int key, float value) floatremove(int key) booleanremove(int key, float value) intsize()Methods inherited from class com.trivago.fastutilconcurrentwrapper.map.PrimitiveConcurrentMap
getBucket, getBucket, isEmpty, size
-
Constructor Details
-
ConcurrentBusyWaitingIntFloatMap
public ConcurrentBusyWaitingIntFloatMap(int numBuckets, int initialCapacity, float loadFactor, float defaultValue)
-
-
Method Details
-
size
public int size()- Specified by:
sizein interfacePrimitiveKeyMap
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacePrimitiveKeyMap
-
containsKey
public boolean containsKey(int key) - Specified by:
containsKeyin interfacePrimitiveIntKeyMap
-
get
public float get(int key) - Specified by:
getin interfaceIntFloatMap
-
put
public float put(int key, float value) - Specified by:
putin interfaceIntFloatMap
-
getDefaultValue
public float getDefaultValue()- Specified by:
getDefaultValuein interfaceIntFloatMap
-
remove
public float remove(int key) - Specified by:
removein interfaceIntFloatMap
-
remove
public boolean remove(int key, float value) - Specified by:
removein interfaceIntFloatMap
-
computeIfAbsent
public float computeIfAbsent(int key, it.unimi.dsi.fastutil.ints.Int2FloatFunction mappingFunction) - Specified by:
computeIfAbsentin interfaceIntFloatMap
-
computeIfPresent
- Specified by:
computeIfPresentin interfaceIntFloatMap
-