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