Package it.unimi.dsi.fastutil.objects
Class Reference2FloatFunctions.PrimitiveFunction<K>
java.lang.Object
it.unimi.dsi.fastutil.objects.Reference2FloatFunctions.PrimitiveFunction<K>
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,java.lang.Float>,it.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>,java.util.function.Function<K,java.lang.Float>,java.util.function.ToDoubleFunction<K>
- Enclosing class:
- Reference2FloatFunctions
public static class Reference2FloatFunctions.PrimitiveFunction<K>
extends java.lang.Object
implements it.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>
An adapter for mapping generic total functions to partial primitive functions.
-
Method Summary
Modifier and Type Method Description booleancontainsKey(java.lang.Object key)java.lang.Floatget(java.lang.Object key)Deprecated.floatgetFloat(java.lang.Object key)floatgetOrDefault(java.lang.Object key, float defaultValue)java.lang.FloatgetOrDefault(java.lang.Object key, java.lang.Float defaultValue)Deprecated.java.lang.Floatput(K key, java.lang.Float value)Deprecated.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.Function
apply, clear, sizeMethods 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, defaultReturnValue, defaultReturnValue, put, remove, removeFloat
-
Method Details
-
containsKey
public boolean containsKey(java.lang.Object key)- Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.Function<K,java.lang.Float>
-
getFloat
public float getFloat(java.lang.Object key)- Specified by:
getFloatin interfaceit.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>
-
getOrDefault
public float getOrDefault(java.lang.Object key, float defaultValue)- Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>
-
get
@Deprecated public java.lang.Float get(java.lang.Object key)Deprecated. -
getOrDefault
@Deprecated public java.lang.Float getOrDefault(java.lang.Object key, java.lang.Float defaultValue)Deprecated. -
put
Deprecated.
-