Package it.unimi.dsi.fastutil.floats
Class Float2DoubleFunctions.UnmodifiableFunction
java.lang.Object
it.unimi.dsi.fastutil.floats.AbstractFloat2DoubleFunction
it.unimi.dsi.fastutil.floats.Float2DoubleFunctions.UnmodifiableFunction
- All Implemented Interfaces:
it.unimi.dsi.fastutil.floats.Float2DoubleFunction,it.unimi.dsi.fastutil.Function<Float,,Double> Serializable,DoubleUnaryOperator,Function<Float,Double>
- Direct Known Subclasses:
Float2DoubleMaps.UnmodifiableMap
- Enclosing class:
Float2DoubleFunctions
public static class Float2DoubleFunctions.UnmodifiableFunction
extends AbstractFloat2DoubleFunction
implements Serializable
An unmodifiable wrapper class for functions.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.floats.Float2DoubleFunctionFields inherited from class it.unimi.dsi.fastutil.floats.AbstractFloat2DoubleFunction
defRetValue -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUnmodifiableFunction(it.unimi.dsi.fastutil.floats.Float2DoubleFunction f) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(float k) doublevoiddefaultReturnValue(double defRetValue) booleandoubleget(float k) Deprecated.Please use the corresponding type-specific method instead.doublegetOrDefault(float k, double defaultValue) getOrDefault(Object k, Double defaultValue) Deprecated.Please use the corresponding type-specific method instead.inthashCode()doubleput(float k, double v) Deprecated.Please use the corresponding type-specific method instead.doubleremove(float 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 java.util.function.DoubleUnaryOperator
andThen, composeMethods inherited from interface it.unimi.dsi.fastutil.floats.Float2DoubleFunction
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 it.unimi.dsi.fastutil.Function
apply
-
Field Details
-
function
protected final it.unimi.dsi.fastutil.floats.Float2DoubleFunction function
-
-
Constructor Details
-
UnmodifiableFunction
protected UnmodifiableFunction(it.unimi.dsi.fastutil.floats.Float2DoubleFunction f)
-
-
Method Details
-
size
public int size() -
defaultReturnValue
public double defaultReturnValue()- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.floats.Float2DoubleFunction- Overrides:
defaultReturnValuein classAbstractFloat2DoubleFunction
-
defaultReturnValue
public void defaultReturnValue(double defRetValue) - Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.floats.Float2DoubleFunction- Overrides:
defaultReturnValuein classAbstractFloat2DoubleFunction
-
containsKey
public boolean containsKey(float k) - Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.floats.Float2DoubleFunction
-
put
public double put(float k, double v) - Specified by:
putin interfaceit.unimi.dsi.fastutil.floats.Float2DoubleFunction
-
get
public double get(float k) - Specified by:
getin interfaceit.unimi.dsi.fastutil.floats.Float2DoubleFunction
-
getOrDefault
public double getOrDefault(float k, double defaultValue) - Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.floats.Float2DoubleFunction
-
remove
public double remove(float k) - Specified by:
removein interfaceit.unimi.dsi.fastutil.floats.Float2DoubleFunction
-
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
-