Package it.unimi.dsi.fastutil.chars
Class Char2FloatFunctions.SynchronizedFunction
java.lang.Object
it.unimi.dsi.fastutil.chars.Char2FloatFunctions.SynchronizedFunction
- All Implemented Interfaces:
it.unimi.dsi.fastutil.chars.Char2FloatFunction
,it.unimi.dsi.fastutil.Function<java.lang.Character,java.lang.Float>
,java.io.Serializable
,java.util.function.Function<java.lang.Character,java.lang.Float>
,java.util.function.IntToDoubleFunction
- Direct Known Subclasses:
Char2FloatMaps.SynchronizedMap
- Enclosing class:
- Char2FloatFunctions
public static class Char2FloatFunctions.SynchronizedFunction
extends java.lang.Object
implements it.unimi.dsi.fastutil.chars.Char2FloatFunction, java.io.Serializable
A synchronized wrapper class for functions.
- See Also:
- Serialized Form
-
Method Summary
Modifier and Type Method Description java.lang.Float
apply(java.lang.Character key)
Deprecated.Please use the corresponding type-specific method instead.double
applyAsDouble(int operand)
Deprecated.Please use the corresponding type-specific method instead.void
clear()
boolean
containsKey(char k)
boolean
containsKey(java.lang.Object k)
Deprecated.float
defaultReturnValue()
void
defaultReturnValue(float defRetValue)
boolean
equals(java.lang.Object o)
float
get(char k)
java.lang.Float
get(java.lang.Object k)
Deprecated.Please use the corresponding type-specific method instead.float
getOrDefault(char k, float defaultValue)
java.lang.Float
getOrDefault(java.lang.Object k, java.lang.Float defaultValue)
Deprecated.Please use the corresponding type-specific method instead.int
hashCode()
float
put(char k, float v)
java.lang.Float
put(java.lang.Character k, java.lang.Float v)
Deprecated.Please use the corresponding type-specific method instead.float
remove(char k)
java.lang.Float
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 it.unimi.dsi.fastutil.chars.Char2FloatFunction
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(int operand)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
applyAsDouble
in interfaceit.unimi.dsi.fastutil.chars.Char2FloatFunction
- Specified by:
applyAsDouble
in interfacejava.util.function.IntToDoubleFunction
-
apply
@Deprecated public java.lang.Float apply(java.lang.Character key)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
apply
in interfaceit.unimi.dsi.fastutil.Function<java.lang.Character,java.lang.Float>
- Specified by:
apply
in interfacejava.util.function.Function<java.lang.Character,java.lang.Float>
-
size
public int size()- Specified by:
size
in interfaceit.unimi.dsi.fastutil.Function<java.lang.Character,java.lang.Float>
-
defaultReturnValue
public float defaultReturnValue()- Specified by:
defaultReturnValue
in interfaceit.unimi.dsi.fastutil.chars.Char2FloatFunction
-
defaultReturnValue
public void defaultReturnValue(float defRetValue)- Specified by:
defaultReturnValue
in interfaceit.unimi.dsi.fastutil.chars.Char2FloatFunction
-
containsKey
public boolean containsKey(char k)- Specified by:
containsKey
in interfaceit.unimi.dsi.fastutil.chars.Char2FloatFunction
-
containsKey
@Deprecated public boolean containsKey(java.lang.Object k)Deprecated.- Specified by:
containsKey
in interfaceit.unimi.dsi.fastutil.chars.Char2FloatFunction
- Specified by:
containsKey
in interfaceit.unimi.dsi.fastutil.Function<java.lang.Character,java.lang.Float>
-
put
public float put(char k, float v)- Specified by:
put
in interfaceit.unimi.dsi.fastutil.chars.Char2FloatFunction
-
get
public float get(char k)- Specified by:
get
in interfaceit.unimi.dsi.fastutil.chars.Char2FloatFunction
-
getOrDefault
public float getOrDefault(char k, float defaultValue)- Specified by:
getOrDefault
in interfaceit.unimi.dsi.fastutil.chars.Char2FloatFunction
-
remove
public float remove(char k)- Specified by:
remove
in interfaceit.unimi.dsi.fastutil.chars.Char2FloatFunction
-
clear
public void clear()- Specified by:
clear
in interfaceit.unimi.dsi.fastutil.Function<java.lang.Character,java.lang.Float>
-
put
@Deprecated public java.lang.Float put(java.lang.Character k, java.lang.Float v)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
put
in interfaceit.unimi.dsi.fastutil.chars.Char2FloatFunction
- Specified by:
put
in interfaceit.unimi.dsi.fastutil.Function<java.lang.Character,java.lang.Float>
-
get
@Deprecated public java.lang.Float get(java.lang.Object k)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
get
in interfaceit.unimi.dsi.fastutil.chars.Char2FloatFunction
- Specified by:
get
in interfaceit.unimi.dsi.fastutil.Function<java.lang.Character,java.lang.Float>
-
getOrDefault
@Deprecated public java.lang.Float getOrDefault(java.lang.Object k, java.lang.Float defaultValue)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
getOrDefault
in interfaceit.unimi.dsi.fastutil.chars.Char2FloatFunction
- Specified by:
getOrDefault
in interfaceit.unimi.dsi.fastutil.Function<java.lang.Character,java.lang.Float>
-
remove
@Deprecated public java.lang.Float remove(java.lang.Object k)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
remove
in interfaceit.unimi.dsi.fastutil.chars.Char2FloatFunction
- Specified by:
remove
in interfaceit.unimi.dsi.fastutil.Function<java.lang.Character,java.lang.Float>
-
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
-