Class Reference2FloatFunctions.SynchronizedFunction<K>

java.lang.Object
it.unimi.dsi.fastutil.objects.Reference2FloatFunctions.SynchronizedFunction<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.SynchronizedMap
Enclosing class:
Reference2FloatFunctions

public static class Reference2FloatFunctions.SynchronizedFunction<K>
extends java.lang.Object
implements it.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>, java.io.Serializable
A synchronized wrapper class for functions.
See Also:
Serialized Form
  • Method Summary

    Modifier and Type Method Description
    java.lang.Float apply​(K key)
    Deprecated.
    Please use the corresponding type-specific method instead.
    double applyAsDouble​(K operand)  
    void clear()  
    boolean containsKey​(java.lang.Object k)  
    float defaultReturnValue()  
    void defaultReturnValue​(float defRetValue)  
    boolean equals​(java.lang.Object o)  
    java.lang.Float get​(java.lang.Object k)
    Deprecated.
    Please use the corresponding type-specific method instead.
    float getFloat​(java.lang.Object k)  
    float getOrDefault​(java.lang.Object k, float defaultValue)  
    java.lang.Float getOrDefault​(java.lang.Object k, java.lang.Float defaultValue)
    Deprecated.
    Please use the corresponding type-specific method instead.
    int hashCode()  
    float put​(K k, float v)  
    java.lang.Float put​(K k, java.lang.Float v)
    Deprecated.
    Please use the corresponding type-specific method instead.
    java.lang.Float remove​(java.lang.Object k)
    Deprecated.
    Please use the corresponding type-specific method instead.
    float removeFloat​(java.lang.Object k)  
    int size()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    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, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort
  • Method Details

    • applyAsDouble

      public double applyAsDouble​(K operand)
      Specified by:
      applyAsDouble in interface it.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>
      Specified by:
      applyAsDouble in interface java.util.function.ToDoubleFunction<K>
    • apply

      @Deprecated public java.lang.Float apply​(K key)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      apply in interface it.unimi.dsi.fastutil.Function<K,​java.lang.Float>
      Specified by:
      apply in interface java.util.function.Function<K,​java.lang.Float>
    • size

      public int size()
      Specified by:
      size in interface it.unimi.dsi.fastutil.Function<K,​java.lang.Float>
    • defaultReturnValue

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

      public void defaultReturnValue​(float defRetValue)
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>
    • containsKey

      public boolean containsKey​(java.lang.Object k)
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.Function<K,​java.lang.Float>
    • put

      public float put​(K k, float v)
      Specified by:
      put in interface it.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>
    • getFloat

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

      public float getOrDefault​(java.lang.Object k, float defaultValue)
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>
    • removeFloat

      public float removeFloat​(java.lang.Object k)
      Specified by:
      removeFloat in interface it.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>
    • clear

      public void clear()
      Specified by:
      clear in interface it.unimi.dsi.fastutil.Function<K,​java.lang.Float>
    • put

      @Deprecated public java.lang.Float put​(K k, java.lang.Float v)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      put in interface it.unimi.dsi.fastutil.Function<K,​java.lang.Float>
      Specified by:
      put in interface it.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>
    • get

      @Deprecated public java.lang.Float get​(java.lang.Object k)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      get in interface it.unimi.dsi.fastutil.Function<K,​java.lang.Float>
      Specified by:
      get in interface it.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>
    • getOrDefault

      @Deprecated public java.lang.Float getOrDefault​(java.lang.Object k, java.lang.Float defaultValue)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.Function<K,​java.lang.Float>
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>
    • remove

      @Deprecated public java.lang.Float remove​(java.lang.Object k)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      remove in interface it.unimi.dsi.fastutil.Function<K,​java.lang.Float>
      Specified by:
      remove in interface it.unimi.dsi.fastutil.objects.Reference2FloatFunction<K>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object