Package it.unimi.dsi.fastutil.doubles
Class Double2FloatFunctions.UnmodifiableFunction
java.lang.Object
it.unimi.dsi.fastutil.doubles.AbstractDouble2FloatFunction
it.unimi.dsi.fastutil.doubles.Double2FloatFunctions.UnmodifiableFunction
- All Implemented Interfaces:
it.unimi.dsi.fastutil.doubles.Double2FloatFunction,it.unimi.dsi.fastutil.Function<Double,,Float> Serializable,DoubleUnaryOperator,Function<Double,Float>
- Direct Known Subclasses:
Double2FloatMaps.UnmodifiableMap
- Enclosing class:
Double2FloatFunctions
public static class Double2FloatFunctions.UnmodifiableFunction
extends AbstractDouble2FloatFunction
implements Serializable
An unmodifiable wrapper class for functions.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.doubles.Double2FloatFunctionFields inherited from class it.unimi.dsi.fastutil.doubles.AbstractDouble2FloatFunction
defRetValue -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUnmodifiableFunction(it.unimi.dsi.fastutil.doubles.Double2FloatFunction f) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(double k) floatvoiddefaultReturnValue(float defRetValue) booleanfloatget(double k) Deprecated.Please use the corresponding type-specific method instead.floatgetOrDefault(double k, float defaultValue) getOrDefault(Object k, Float defaultValue) Deprecated.Please use the corresponding type-specific method instead.inthashCode()floatput(double k, float v) Deprecated.Please use the corresponding type-specific method instead.floatremove(double 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.doubles.Double2FloatFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsDouble, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, containsKeyMethods inherited from interface java.util.function.DoubleUnaryOperator
andThen, composeMethods inherited from interface it.unimi.dsi.fastutil.Function
apply
-
Field Details
-
function
protected final it.unimi.dsi.fastutil.doubles.Double2FloatFunction function
-
-
Constructor Details
-
UnmodifiableFunction
protected UnmodifiableFunction(it.unimi.dsi.fastutil.doubles.Double2FloatFunction f)
-
-
Method Details
-
size
public int size() -
defaultReturnValue
public float defaultReturnValue()- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.doubles.Double2FloatFunction- Overrides:
defaultReturnValuein classAbstractDouble2FloatFunction
-
defaultReturnValue
public void defaultReturnValue(float defRetValue) - Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.doubles.Double2FloatFunction- Overrides:
defaultReturnValuein classAbstractDouble2FloatFunction
-
containsKey
public boolean containsKey(double k) - Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.doubles.Double2FloatFunction
-
put
public float put(double k, float v) - Specified by:
putin interfaceit.unimi.dsi.fastutil.doubles.Double2FloatFunction
-
get
public float get(double k) - Specified by:
getin interfaceit.unimi.dsi.fastutil.doubles.Double2FloatFunction
-
getOrDefault
public float getOrDefault(double k, float defaultValue) - Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.doubles.Double2FloatFunction
-
remove
public float remove(double k) - Specified by:
removein interfaceit.unimi.dsi.fastutil.doubles.Double2FloatFunction
-
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
-