Package it.unimi.dsi.fastutil.floats
Class Float2ShortFunctions.UnmodifiableFunction
java.lang.Object
it.unimi.dsi.fastutil.floats.AbstractFloat2ShortFunction
it.unimi.dsi.fastutil.floats.Float2ShortFunctions.UnmodifiableFunction
- All Implemented Interfaces:
it.unimi.dsi.fastutil.floats.Float2ShortFunction,it.unimi.dsi.fastutil.Function<Float,,Short> Serializable,DoubleToIntFunction,Function<Float,Short>
- Direct Known Subclasses:
Float2ShortMaps.UnmodifiableMap
- Enclosing class:
Float2ShortFunctions
public static class Float2ShortFunctions.UnmodifiableFunction
extends AbstractFloat2ShortFunction
implements Serializable
An unmodifiable wrapper class for functions.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.floats.Float2ShortFunctionFields inherited from class it.unimi.dsi.fastutil.floats.AbstractFloat2ShortFunction
defRetValue -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUnmodifiableFunction(it.unimi.dsi.fastutil.floats.Float2ShortFunction f) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleancontainsKey(float k) shortvoiddefaultReturnValue(short defRetValue) booleanshortget(float k) Deprecated.Please use the corresponding type-specific method instead.shortgetOrDefault(float k, short defaultValue) getOrDefault(Object k, Short defaultValue) Deprecated.Please use the corresponding type-specific method instead.inthashCode()shortput(float k, short v) Deprecated.Please use the corresponding type-specific method instead.shortremove(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 it.unimi.dsi.fastutil.floats.Float2ShortFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsInt, 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.Float2ShortFunction function
-
-
Constructor Details
-
UnmodifiableFunction
protected UnmodifiableFunction(it.unimi.dsi.fastutil.floats.Float2ShortFunction f)
-
-
Method Details
-
size
public int size() -
defaultReturnValue
public short defaultReturnValue()- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.floats.Float2ShortFunction- Overrides:
defaultReturnValuein classAbstractFloat2ShortFunction
-
defaultReturnValue
public void defaultReturnValue(short defRetValue) - Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.floats.Float2ShortFunction- Overrides:
defaultReturnValuein classAbstractFloat2ShortFunction
-
containsKey
public boolean containsKey(float k) - Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.floats.Float2ShortFunction
-
put
public short put(float k, short v) - Specified by:
putin interfaceit.unimi.dsi.fastutil.floats.Float2ShortFunction
-
get
public short get(float k) - Specified by:
getin interfaceit.unimi.dsi.fastutil.floats.Float2ShortFunction
-
getOrDefault
public short getOrDefault(float k, short defaultValue) - Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.floats.Float2ShortFunction
-
remove
public short remove(float k) - Specified by:
removein interfaceit.unimi.dsi.fastutil.floats.Float2ShortFunction
-
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
-