public static class Int2FloatFunctions.SynchronizedFunction
extends java.lang.Object
implements it.unimi.dsi.fastutil.ints.Int2FloatFunction, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected it.unimi.dsi.fastutil.ints.Int2FloatFunction |
function |
protected java.lang.Object |
sync |
| Modifier | Constructor and Description |
|---|---|
protected |
SynchronizedFunction(it.unimi.dsi.fastutil.ints.Int2FloatFunction f) |
protected |
SynchronizedFunction(it.unimi.dsi.fastutil.ints.Int2FloatFunction f,
java.lang.Object sync) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Float |
apply(java.lang.Integer key)
Deprecated.
Please use the corresponding type-specific method instead.
|
double |
applyAsDouble(int operand) |
void |
clear() |
boolean |
containsKey(int k) |
boolean |
containsKey(java.lang.Object k)
Deprecated.
|
float |
defaultReturnValue() |
void |
defaultReturnValue(float defRetValue) |
boolean |
equals(java.lang.Object o) |
float |
get(int k) |
java.lang.Float |
get(java.lang.Object k)
Deprecated.
Please use the corresponding type-specific method instead.
|
float |
getOrDefault(int 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() |
java.lang.Float |
put(java.lang.Integer k,
java.lang.Float v)
Deprecated.
Please use the corresponding type-specific method instead.
|
float |
put(int k,
float v) |
float |
remove(int k) |
java.lang.Float |
remove(java.lang.Object k)
Deprecated.
Please use the corresponding type-specific method instead.
|
int |
size() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitandThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShortprotected final it.unimi.dsi.fastutil.ints.Int2FloatFunction function
protected final java.lang.Object sync
protected SynchronizedFunction(it.unimi.dsi.fastutil.ints.Int2FloatFunction f,
java.lang.Object sync)
protected SynchronizedFunction(it.unimi.dsi.fastutil.ints.Int2FloatFunction f)
public double applyAsDouble(int operand)
applyAsDouble in interface it.unimi.dsi.fastutil.ints.Int2FloatFunctionapplyAsDouble in interface java.util.function.IntToDoubleFunction@Deprecated public java.lang.Float apply(java.lang.Integer key)
apply in interface java.util.function.Function<java.lang.Integer,java.lang.Float>public int size()
public float defaultReturnValue()
defaultReturnValue in interface it.unimi.dsi.fastutil.ints.Int2FloatFunctionpublic void defaultReturnValue(float defRetValue)
defaultReturnValue in interface it.unimi.dsi.fastutil.ints.Int2FloatFunctionpublic boolean containsKey(int k)
containsKey in interface it.unimi.dsi.fastutil.ints.Int2FloatFunction@Deprecated public boolean containsKey(java.lang.Object k)
containsKey in interface it.unimi.dsi.fastutil.ints.Int2FloatFunctionpublic float put(int k,
float v)
put in interface it.unimi.dsi.fastutil.ints.Int2FloatFunctionpublic float get(int k)
get in interface it.unimi.dsi.fastutil.ints.Int2FloatFunctionpublic float getOrDefault(int k,
float defaultValue)
getOrDefault in interface it.unimi.dsi.fastutil.ints.Int2FloatFunctionpublic float remove(int k)
remove in interface it.unimi.dsi.fastutil.ints.Int2FloatFunctionpublic void clear()
@Deprecated
public java.lang.Float put(java.lang.Integer k,
java.lang.Float v)
put in interface it.unimi.dsi.fastutil.ints.Int2FloatFunction@Deprecated public java.lang.Float get(java.lang.Object k)
get in interface it.unimi.dsi.fastutil.ints.Int2FloatFunction@Deprecated
public java.lang.Float getOrDefault(java.lang.Object k,
java.lang.Float defaultValue)
getOrDefault in interface it.unimi.dsi.fastutil.ints.Int2FloatFunction@Deprecated public java.lang.Float remove(java.lang.Object k)
remove in interface it.unimi.dsi.fastutil.ints.Int2FloatFunctionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object