Class Object2FloatFunctions.SynchronizedFunction<K>

java.lang.Object
it.unimi.dsi.fastutil.objects.Object2FloatFunctions.SynchronizedFunction<K>
All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,Float>, it.unimi.dsi.fastutil.objects.Object2FloatFunction<K>, Serializable, Function<K,Float>, ToDoubleFunction<K>
Direct Known Subclasses:
Object2FloatMaps.SynchronizedMap
Enclosing class:
Object2FloatFunctions

public static class Object2FloatFunctions.SynchronizedFunction<K> extends Object implements it.unimi.dsi.fastutil.objects.Object2FloatFunction<K>, Serializable
A synchronized wrapper class for functions.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final it.unimi.dsi.fastutil.objects.Object2FloatFunction<K>
     
    protected final Object
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    SynchronizedFunction(it.unimi.dsi.fastutil.objects.Object2FloatFunction<K> f)
     
    protected
    SynchronizedFunction(it.unimi.dsi.fastutil.objects.Object2FloatFunction<K> f, Object sync)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(K key)
    Deprecated.
    Please use the corresponding type-specific method instead.
    double
    applyAsDouble(K operand)
     
    void
     
    boolean
     
    float
     
    void
    defaultReturnValue(float defRetValue)
     
    boolean
     
    Deprecated.
    Please use the corresponding type-specific method instead.
    float
     
    float
    getOrDefault(Object k, float defaultValue)
     
    getOrDefault(Object k, Float defaultValue)
    Deprecated.
    Please use the corresponding type-specific method instead.
    int
     
    float
    put(K k, float v)
     
    put(K k, Float v)
    Deprecated.
    Please use the corresponding type-specific method instead.
    Deprecated.
    Please use the corresponding type-specific method instead.
    float
     
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

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

    • function

      protected final it.unimi.dsi.fastutil.objects.Object2FloatFunction<K> function
    • sync

      protected final Object sync
  • Constructor Details

    • SynchronizedFunction

      protected SynchronizedFunction(it.unimi.dsi.fastutil.objects.Object2FloatFunction<K> f, Object sync)
    • SynchronizedFunction

      protected SynchronizedFunction(it.unimi.dsi.fastutil.objects.Object2FloatFunction<K> f)
  • Method Details

    • applyAsDouble

      public double applyAsDouble(K operand)
      Specified by:
      applyAsDouble in interface it.unimi.dsi.fastutil.objects.Object2FloatFunction<K>
      Specified by:
      applyAsDouble in interface ToDoubleFunction<K>
    • apply

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object