public static class Int2FloatFunctions.UnmodifiableFunction extends AbstractInt2FloatFunction implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected it.unimi.dsi.fastutil.ints.Int2FloatFunction |
function |
defRetValue| Modifier | Constructor and Description |
|---|---|
protected |
UnmodifiableFunction(it.unimi.dsi.fastutil.ints.Int2FloatFunction f) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(int k) |
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, applyAsDouble, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, containsKeyprotected UnmodifiableFunction(it.unimi.dsi.fastutil.ints.Int2FloatFunction f)
public int size()
public float defaultReturnValue()
defaultReturnValue in interface it.unimi.dsi.fastutil.ints.Int2FloatFunctiondefaultReturnValue in class AbstractInt2FloatFunctionpublic void defaultReturnValue(float defRetValue)
defaultReturnValue in interface it.unimi.dsi.fastutil.ints.Int2FloatFunctiondefaultReturnValue in class AbstractInt2FloatFunctionpublic boolean containsKey(int 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