Class PrimitiveFastutilLongLongWrapper
java.lang.Object
com.trivago.fastutilconcurrentwrapper.wrapper.PrimitiveFastutilLongLongWrapper
- All Implemented Interfaces:
LongLongMap,PrimitiveKeyMap,PrimitiveLongKeyMap
-
Field Summary
Fields inherited from interface com.trivago.fastutilconcurrentwrapper.LongLongMap
DEFAULT_VALUE -
Constructor Summary
ConstructorsConstructorDescriptionPrimitiveFastutilLongLongWrapper(int initialCapacity, float loadFactor) PrimitiveFastutilLongLongWrapper(int initialCapacity, float loadFactor, long defaultValue) -
Method Summary
Modifier and TypeMethodDescriptionlongcomputeIfAbsent(long key, it.unimi.dsi.fastutil.longs.Long2LongFunction mappingFunction) longcomputeIfPresent(long key, BiFunction<Long, Long, Long> mappingFunction) booleancontainsKey(long key) longget(long key) longbooleanisEmpty()longput(long key, long value) longremove(long key) booleanremove(long key, long value) intsize()
-
Constructor Details
-
PrimitiveFastutilLongLongWrapper
public PrimitiveFastutilLongLongWrapper(int initialCapacity, float loadFactor) -
PrimitiveFastutilLongLongWrapper
public PrimitiveFastutilLongLongWrapper(int initialCapacity, float loadFactor, long defaultValue)
-
-
Method Details
-
get
public long get(long key) - Specified by:
getin interfaceLongLongMap- Returns:
- 0 if the key is not present
-
put
public long put(long key, long value) - Specified by:
putin interfaceLongLongMap
-
getDefaultValue
public long getDefaultValue()- Specified by:
getDefaultValuein interfaceLongLongMap
-
remove
public long remove(long key) - Specified by:
removein interfaceLongLongMap
-
remove
public boolean remove(long key, long value) - Specified by:
removein interfaceLongLongMap
-
size
public int size()- Specified by:
sizein interfacePrimitiveKeyMap
-
containsKey
public boolean containsKey(long key) - Specified by:
containsKeyin interfacePrimitiveLongKeyMap
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfacePrimitiveKeyMap
-
computeIfAbsent
public long computeIfAbsent(long key, it.unimi.dsi.fastutil.longs.Long2LongFunction mappingFunction) - Specified by:
computeIfAbsentin interfaceLongLongMap
-
computeIfPresent
- Specified by:
computeIfPresentin interfaceLongLongMap
-