Package it.unimi.dsi.fastutil.floats
Class Float2DoubleFunctions.SynchronizedFunction
java.lang.Object
it.unimi.dsi.fastutil.floats.Float2DoubleFunctions.SynchronizedFunction
- All Implemented Interfaces:
it.unimi.dsi.fastutil.floats.Float2DoubleFunction
,it.unimi.dsi.fastutil.Function<java.lang.Float,java.lang.Double>
,java.io.Serializable
,java.util.function.DoubleUnaryOperator
,java.util.function.Function<java.lang.Float,java.lang.Double>
- Direct Known Subclasses:
Float2DoubleMaps.SynchronizedMap
- Enclosing class:
- Float2DoubleFunctions
public static class Float2DoubleFunctions.SynchronizedFunction
extends java.lang.Object
implements it.unimi.dsi.fastutil.floats.Float2DoubleFunction, java.io.Serializable
A synchronized wrapper class for functions.
- See Also:
- Serialized Form
-
Method Summary
Modifier and Type Method Description java.lang.Double
apply(java.lang.Float key)
Deprecated.Please use the corresponding type-specific method instead.double
applyAsDouble(double operand)
Deprecated.Please use the corresponding type-specific method instead.void
clear()
boolean
containsKey(float k)
boolean
containsKey(java.lang.Object k)
Deprecated.double
defaultReturnValue()
void
defaultReturnValue(double defRetValue)
boolean
equals(java.lang.Object o)
double
get(float k)
java.lang.Double
get(java.lang.Object k)
Deprecated.Please use the corresponding type-specific method instead.double
getOrDefault(float k, double defaultValue)
java.lang.Double
getOrDefault(java.lang.Object k, java.lang.Double defaultValue)
Deprecated.Please use the corresponding type-specific method instead.int
hashCode()
double
put(float k, double v)
java.lang.Double
put(java.lang.Float k, java.lang.Double v)
Deprecated.Please use the corresponding type-specific method instead.double
remove(float k)
java.lang.Double
remove(java.lang.Object k)
Deprecated.Please use the corresponding type-specific method instead.int
size()
java.lang.String
toString()
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.function.DoubleUnaryOperator
andThen, compose
Methods inherited from interface it.unimi.dsi.fastutil.floats.Float2DoubleFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort
-
Method Details
-
applyAsDouble
@Deprecated public double applyAsDouble(double operand)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
applyAsDouble
in interfacejava.util.function.DoubleUnaryOperator
- Specified by:
applyAsDouble
in interfaceit.unimi.dsi.fastutil.floats.Float2DoubleFunction
-
apply
@Deprecated public java.lang.Double apply(java.lang.Float key)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
apply
in interfaceit.unimi.dsi.fastutil.Function<java.lang.Float,java.lang.Double>
- Specified by:
apply
in interfacejava.util.function.Function<java.lang.Float,java.lang.Double>
-
size
public int size()- Specified by:
size
in interfaceit.unimi.dsi.fastutil.Function<java.lang.Float,java.lang.Double>
-
defaultReturnValue
public double defaultReturnValue()- Specified by:
defaultReturnValue
in interfaceit.unimi.dsi.fastutil.floats.Float2DoubleFunction
-
defaultReturnValue
public void defaultReturnValue(double defRetValue)- Specified by:
defaultReturnValue
in interfaceit.unimi.dsi.fastutil.floats.Float2DoubleFunction
-
containsKey
public boolean containsKey(float k)- Specified by:
containsKey
in interfaceit.unimi.dsi.fastutil.floats.Float2DoubleFunction
-
containsKey
@Deprecated public boolean containsKey(java.lang.Object k)Deprecated.- Specified by:
containsKey
in interfaceit.unimi.dsi.fastutil.floats.Float2DoubleFunction
- Specified by:
containsKey
in interfaceit.unimi.dsi.fastutil.Function<java.lang.Float,java.lang.Double>
-
put
public double put(float k, double v)- Specified by:
put
in interfaceit.unimi.dsi.fastutil.floats.Float2DoubleFunction
-
get
public double get(float k)- Specified by:
get
in interfaceit.unimi.dsi.fastutil.floats.Float2DoubleFunction
-
getOrDefault
public double getOrDefault(float k, double defaultValue)- Specified by:
getOrDefault
in interfaceit.unimi.dsi.fastutil.floats.Float2DoubleFunction
-
remove
public double remove(float k)- Specified by:
remove
in interfaceit.unimi.dsi.fastutil.floats.Float2DoubleFunction
-
clear
public void clear()- Specified by:
clear
in interfaceit.unimi.dsi.fastutil.Function<java.lang.Float,java.lang.Double>
-
put
@Deprecated public java.lang.Double put(java.lang.Float k, java.lang.Double v)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
put
in interfaceit.unimi.dsi.fastutil.floats.Float2DoubleFunction
- Specified by:
put
in interfaceit.unimi.dsi.fastutil.Function<java.lang.Float,java.lang.Double>
-
get
@Deprecated public java.lang.Double get(java.lang.Object k)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
get
in interfaceit.unimi.dsi.fastutil.floats.Float2DoubleFunction
- Specified by:
get
in interfaceit.unimi.dsi.fastutil.Function<java.lang.Float,java.lang.Double>
-
getOrDefault
@Deprecated public java.lang.Double getOrDefault(java.lang.Object k, java.lang.Double defaultValue)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
getOrDefault
in interfaceit.unimi.dsi.fastutil.floats.Float2DoubleFunction
- Specified by:
getOrDefault
in interfaceit.unimi.dsi.fastutil.Function<java.lang.Float,java.lang.Double>
-
remove
@Deprecated public java.lang.Double remove(java.lang.Object k)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
remove
in interfaceit.unimi.dsi.fastutil.floats.Float2DoubleFunction
- Specified by:
remove
in interfaceit.unimi.dsi.fastutil.Function<java.lang.Float,java.lang.Double>
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-