Package it.unimi.dsi.fastutil.bytes
Class Byte2FloatFunctions.UnmodifiableFunction
java.lang.Object
it.unimi.dsi.fastutil.bytes.AbstractByte2FloatFunction
it.unimi.dsi.fastutil.bytes.Byte2FloatFunctions.UnmodifiableFunction
- All Implemented Interfaces:
it.unimi.dsi.fastutil.bytes.Byte2FloatFunction,it.unimi.dsi.fastutil.Function<Byte,,Float> Serializable,Function<Byte,,Float> IntToDoubleFunction
- Direct Known Subclasses:
Byte2FloatMaps.UnmodifiableMap
- Enclosing class:
Byte2FloatFunctions
public static class Byte2FloatFunctions.UnmodifiableFunction
extends AbstractByte2FloatFunction
implements Serializable
An unmodifiable wrapper class for functions.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.bytes.Byte2FloatFunctionFields inherited from class it.unimi.dsi.fastutil.bytes.AbstractByte2FloatFunction
defRetValue -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUnmodifiableFunction(it.unimi.dsi.fastutil.bytes.Byte2FloatFunction f) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(byte k) floatvoiddefaultReturnValue(float defRetValue) booleanfloatget(byte k) Deprecated.Please use the corresponding type-specific method instead.floatgetOrDefault(byte k, float defaultValue) getOrDefault(Object k, Float defaultValue) Deprecated.Please use the corresponding type-specific method instead.inthashCode()floatput(byte k, float v) Deprecated.Please use the corresponding type-specific method instead.floatremove(byte 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.bytes.Byte2FloatFunction
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.bytes.Byte2FloatFunction function
-
-
Constructor Details
-
UnmodifiableFunction
protected UnmodifiableFunction(it.unimi.dsi.fastutil.bytes.Byte2FloatFunction f)
-
-
Method Details
-
size
public int size() -
defaultReturnValue
public float defaultReturnValue()- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.bytes.Byte2FloatFunction- Overrides:
defaultReturnValuein classAbstractByte2FloatFunction
-
defaultReturnValue
public void defaultReturnValue(float defRetValue) - Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.bytes.Byte2FloatFunction- Overrides:
defaultReturnValuein classAbstractByte2FloatFunction
-
containsKey
public boolean containsKey(byte k) - Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.bytes.Byte2FloatFunction
-
put
public float put(byte k, float v) - Specified by:
putin interfaceit.unimi.dsi.fastutil.bytes.Byte2FloatFunction
-
get
public float get(byte k) - Specified by:
getin interfaceit.unimi.dsi.fastutil.bytes.Byte2FloatFunction
-
getOrDefault
public float getOrDefault(byte k, float defaultValue) - Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.bytes.Byte2FloatFunction
-
remove
public float remove(byte k) - Specified by:
removein interfaceit.unimi.dsi.fastutil.bytes.Byte2FloatFunction
-
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
-