Package it.unimi.dsi.fastutil.longs
Class Long2FloatFunctions.SynchronizedFunction
java.lang.Object
it.unimi.dsi.fastutil.longs.Long2FloatFunctions.SynchronizedFunction
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<Long,,Float> it.unimi.dsi.fastutil.longs.Long2FloatFunction,Serializable,Function<Long,,Float> LongToDoubleFunction
- Direct Known Subclasses:
Long2FloatMaps.SynchronizedMap
- Enclosing class:
Long2FloatFunctions
public static class Long2FloatFunctions.SynchronizedFunction
extends Object
implements it.unimi.dsi.fastutil.longs.Long2FloatFunction, Serializable
A synchronized wrapper class for functions.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSynchronizedFunction(it.unimi.dsi.fastutil.longs.Long2FloatFunction f) protectedSynchronizedFunction(it.unimi.dsi.fastutil.longs.Long2FloatFunction f, Object sync) -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Please use the corresponding type-specific method instead.doubleapplyAsDouble(long operand) voidclear()booleancontainsKey(long k) booleanDeprecated.floatvoiddefaultReturnValue(float defRetValue) booleanfloatget(long k) Deprecated.Please use the corresponding type-specific method instead.floatgetOrDefault(long k, float defaultValue) getOrDefault(Object k, Float defaultValue) Deprecated.Please use the corresponding type-specific method instead.inthashCode()floatput(long k, float v) Deprecated.Please use the corresponding type-specific method instead.floatremove(long k) Deprecated.Please use the corresponding type-specific method instead.intsize()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.longs.Long2FloatFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort
-
Field Details
-
function
protected final it.unimi.dsi.fastutil.longs.Long2FloatFunction function -
sync
-
-
Constructor Details
-
SynchronizedFunction
-
SynchronizedFunction
protected SynchronizedFunction(it.unimi.dsi.fastutil.longs.Long2FloatFunction f)
-
-
Method Details
-
applyAsDouble
public double applyAsDouble(long operand) - Specified by:
applyAsDoublein interfaceit.unimi.dsi.fastutil.longs.Long2FloatFunction- Specified by:
applyAsDoublein interfaceLongToDoubleFunction
-
apply
Deprecated.Please use the corresponding type-specific method instead. -
size
public int size() -
defaultReturnValue
public float defaultReturnValue()- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.longs.Long2FloatFunction
-
defaultReturnValue
public void defaultReturnValue(float defRetValue) - Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.longs.Long2FloatFunction
-
containsKey
public boolean containsKey(long k) - Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.longs.Long2FloatFunction
-
containsKey
Deprecated. -
put
public float put(long k, float v) - Specified by:
putin interfaceit.unimi.dsi.fastutil.longs.Long2FloatFunction
-
get
public float get(long k) - Specified by:
getin interfaceit.unimi.dsi.fastutil.longs.Long2FloatFunction
-
getOrDefault
public float getOrDefault(long k, float defaultValue) - Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.longs.Long2FloatFunction
-
remove
public float remove(long k) - Specified by:
removein interfaceit.unimi.dsi.fastutil.longs.Long2FloatFunction
-
clear
public void clear() -
put
Deprecated.Please use the corresponding type-specific method instead. -
get
Deprecated.Please use the corresponding type-specific method instead. -
getOrDefault
Deprecated.Please use the corresponding type-specific method instead. -
remove
Deprecated.Please use the corresponding type-specific method instead. -
hashCode
public int hashCode() -
equals
-
toString
-