Package it.unimi.dsi.fastutil.objects
Class Object2FloatFunctions.UnmodifiableFunction<K>
java.lang.Object
it.unimi.dsi.fastutil.objects.AbstractObject2FloatFunction<K>
it.unimi.dsi.fastutil.objects.Object2FloatFunctions.UnmodifiableFunction<K>
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,,Float> it.unimi.dsi.fastutil.objects.Object2FloatFunction<K>,Serializable,Function<K,,Float> ToDoubleFunction<K>
- Direct Known Subclasses:
Object2FloatMaps.UnmodifiableMap
- Enclosing class:
Object2FloatFunctions
public static class Object2FloatFunctions.UnmodifiableFunction<K>
extends AbstractObject2FloatFunction<K>
implements Serializable
An unmodifiable wrapper class for functions.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.objects.Object2FloatFunction<? extends K> Fields inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2FloatFunction
defRetValue -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUnmodifiableFunction(it.unimi.dsi.fastutil.objects.Object2FloatFunction<? extends K> f) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleanfloatvoiddefaultReturnValue(float defRetValue) booleanDeprecated.Please use the corresponding type-specific method instead.floatfloatgetOrDefault(Object k, float defaultValue) getOrDefault(Object k, Float defaultValue) Deprecated.Please use the corresponding type-specific method instead.inthashCode()floatDeprecated.Please use the corresponding type-specific method instead.Deprecated.Please use the corresponding type-specific method instead.floatintsize()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.Function
applyMethods inherited from interface it.unimi.dsi.fastutil.objects.Object2FloatFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsDouble, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort
-
Field Details
-
function
-
-
Constructor Details
-
UnmodifiableFunction
-
-
Method Details
-
size
public int size() -
defaultReturnValue
public float defaultReturnValue()- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.objects.Object2FloatFunction<K>- Overrides:
defaultReturnValuein classAbstractObject2FloatFunction<K>
-
defaultReturnValue
public void defaultReturnValue(float defRetValue) - Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.objects.Object2FloatFunction<K>- Overrides:
defaultReturnValuein classAbstractObject2FloatFunction<K>
-
containsKey
-
put
- Specified by:
putin interfaceit.unimi.dsi.fastutil.objects.Object2FloatFunction<K>
-
getFloat
- Specified by:
getFloatin interfaceit.unimi.dsi.fastutil.objects.Object2FloatFunction<K>
-
getOrDefault
- Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.objects.Object2FloatFunction<K>
-
removeFloat
- Specified by:
removeFloatin interfaceit.unimi.dsi.fastutil.objects.Object2FloatFunction<K>
-
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
-