Package it.unimi.dsi.fastutil.ints
Class Int2DoubleFunctions.SynchronizedFunction
java.lang.Object
it.unimi.dsi.fastutil.ints.Int2DoubleFunctions.SynchronizedFunction
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<Integer,,Double> it.unimi.dsi.fastutil.ints.Int2DoubleFunction,Serializable,Function<Integer,,Double> IntToDoubleFunction
- Direct Known Subclasses:
Int2DoubleMaps.SynchronizedMap
- Enclosing class:
Int2DoubleFunctions
public static class Int2DoubleFunctions.SynchronizedFunction
extends Object
implements it.unimi.dsi.fastutil.ints.Int2DoubleFunction, Serializable
A synchronized wrapper class for functions.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSynchronizedFunction(it.unimi.dsi.fastutil.ints.Int2DoubleFunction f) protectedSynchronizedFunction(it.unimi.dsi.fastutil.ints.Int2DoubleFunction f, Object sync) -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Please use the corresponding type-specific method instead.doubleapplyAsDouble(int operand) voidclear()booleancontainsKey(int k) booleanDeprecated.doublevoiddefaultReturnValue(double defRetValue) booleandoubleget(int k) Deprecated.Please use the corresponding type-specific method instead.doublegetOrDefault(int k, double defaultValue) getOrDefault(Object k, Double defaultValue) Deprecated.Please use the corresponding type-specific method instead.inthashCode()doubleput(int k, double v) Deprecated.Please use the corresponding type-specific method instead.doubleremove(int 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.ints.Int2DoubleFunction
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.ints.Int2DoubleFunction function -
sync
-
-
Constructor Details
-
SynchronizedFunction
-
SynchronizedFunction
protected SynchronizedFunction(it.unimi.dsi.fastutil.ints.Int2DoubleFunction f)
-
-
Method Details
-
applyAsDouble
public double applyAsDouble(int operand) - Specified by:
applyAsDoublein interfaceit.unimi.dsi.fastutil.ints.Int2DoubleFunction- Specified by:
applyAsDoublein interfaceIntToDoubleFunction
-
apply
Deprecated.Please use the corresponding type-specific method instead. -
size
public int size() -
defaultReturnValue
public double defaultReturnValue()- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.ints.Int2DoubleFunction
-
defaultReturnValue
public void defaultReturnValue(double defRetValue) - Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.ints.Int2DoubleFunction
-
containsKey
public boolean containsKey(int k) - Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.ints.Int2DoubleFunction
-
containsKey
Deprecated. -
put
public double put(int k, double v) - Specified by:
putin interfaceit.unimi.dsi.fastutil.ints.Int2DoubleFunction
-
get
public double get(int k) - Specified by:
getin interfaceit.unimi.dsi.fastutil.ints.Int2DoubleFunction
-
getOrDefault
public double getOrDefault(int k, double defaultValue) - Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.ints.Int2DoubleFunction
-
remove
public double remove(int k) - Specified by:
removein interfaceit.unimi.dsi.fastutil.ints.Int2DoubleFunction
-
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
-