Class Reference2FloatFunctions.PrimitiveFunction<K>

java.lang.Object
it.unimi.dsi.fastutil.objects.Reference2FloatFunctions.PrimitiveFunction<K>
All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,Float>, it.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>, Function<K,Float>, ToDoubleFunction<K>
Enclosing class:
Reference2FloatFunctions

public static class Reference2FloatFunctions.PrimitiveFunction<K> extends Object implements it.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>
An adapter for mapping generic total functions to partial primitive functions.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final Function<? super K,? extends Float>
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    PrimitiveFunction(Function<? super K,? extends Float> function)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    get(Object key)
    Deprecated.
    float
     
    float
    getOrDefault(Object key, float defaultValue)
     
    getOrDefault(Object key, Float defaultValue)
    Deprecated.
    put(K key, Float value)
    Deprecated.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, 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.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
  • Field Details

    • function

      protected final Function<? super K,? extends Float> function
  • Constructor Details

    • PrimitiveFunction

      protected PrimitiveFunction(Function<? super K,? extends Float> function)
  • Method Details

    • containsKey

      public boolean containsKey(Object key)
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.Function<K,Float>
    • getFloat

      public float getFloat(Object key)
      Specified by:
      getFloat in interface it.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>
    • getOrDefault

      public float getOrDefault(Object key, float defaultValue)
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>
    • get

      @Deprecated public Float get(Object key)
      Deprecated.
      Specified by:
      get in interface it.unimi.dsi.fastutil.Function<K,Float>
      Specified by:
      get in interface it.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>
    • getOrDefault

      @Deprecated public Float getOrDefault(Object key, Float defaultValue)
      Deprecated.
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.Function<K,Float>
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>
    • put

      @Deprecated public Float put(K key, Float value)
      Deprecated.
      Specified by:
      put in interface it.unimi.dsi.fastutil.Function<K,Float>
      Specified by:
      put in interface it.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>