Package it.unimi.dsi.fastutil.objects
Class Reference2FloatFunctions.UnmodifiableFunction<K>
java.lang.Object
it.unimi.dsi.fastutil.objects.AbstractReference2FloatFunction<K>
it.unimi.dsi.fastutil.objects.Reference2FloatFunctions.UnmodifiableFunction<K>
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,java.lang.Float>,it.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>,java.io.Serializable,java.util.function.Function<K,java.lang.Float>,java.util.function.ToDoubleFunction<K>
- Direct Known Subclasses:
Reference2FloatMaps.UnmodifiableMap
- Enclosing class:
- Reference2FloatFunctions
public static class Reference2FloatFunctions.UnmodifiableFunction<K> extends AbstractReference2FloatFunction<K> implements java.io.Serializable
An unmodifiable wrapper class for functions.
- See Also:
- Serialized Form
-
Method Summary
Modifier and Type Method Description voidclear()booleancontainsKey(java.lang.Object k)floatdefaultReturnValue()voiddefaultReturnValue(float defRetValue)booleanequals(java.lang.Object o)java.lang.Floatget(java.lang.Object k)Deprecated.Please use the corresponding type-specific method instead.floatgetFloat(java.lang.Object k)floatgetOrDefault(java.lang.Object k, float defaultValue)java.lang.FloatgetOrDefault(java.lang.Object k, java.lang.Float defaultValue)Deprecated.Please use the corresponding type-specific method instead.inthashCode()floatput(K k, float v)java.lang.Floatput(K k, java.lang.Float v)Deprecated.Please use the corresponding type-specific method instead.java.lang.Floatremove(java.lang.Object k)Deprecated.Please use the corresponding type-specific method instead.floatremoveFloat(java.lang.Object k)intsize()java.lang.StringtoString()Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.Function
applyMethods inherited from interface java.util.function.Function
composeMethods inherited from interface it.unimi.dsi.fastutil.objects.Reference2FloatFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsDouble, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceit.unimi.dsi.fastutil.Function<K,java.lang.Float>
-
defaultReturnValue
public float defaultReturnValue()- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>- Overrides:
defaultReturnValuein classAbstractReference2FloatFunction<K>
-
defaultReturnValue
public void defaultReturnValue(float defRetValue)- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>- Overrides:
defaultReturnValuein classAbstractReference2FloatFunction<K>
-
containsKey
public boolean containsKey(java.lang.Object k)- Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.Function<K,java.lang.Float>
-
put
- Specified by:
putin interfaceit.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>
-
getFloat
public float getFloat(java.lang.Object k)- Specified by:
getFloatin interfaceit.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>
-
getOrDefault
public float getOrDefault(java.lang.Object k, float defaultValue)- Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>
-
removeFloat
public float removeFloat(java.lang.Object k)- Specified by:
removeFloatin interfaceit.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>
-
clear
public void clear()- Specified by:
clearin interfaceit.unimi.dsi.fastutil.Function<K,java.lang.Float>
-
put
Deprecated.Please use the corresponding type-specific method instead. -
get
@Deprecated public java.lang.Float get(java.lang.Object k)Deprecated.Please use the corresponding type-specific method instead. -
getOrDefault
@Deprecated public java.lang.Float getOrDefault(java.lang.Object k, java.lang.Float defaultValue)Deprecated.Please use the corresponding type-specific method instead. -
remove
@Deprecated public java.lang.Float remove(java.lang.Object k)Deprecated.Please use the corresponding type-specific method instead. -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-