Class Float2ObjectFunctions.SynchronizedFunction<V>

java.lang.Object
it.unimi.dsi.fastutil.floats.Float2ObjectFunctions.SynchronizedFunction<V>
All Implemented Interfaces:
it.unimi.dsi.fastutil.floats.Float2ObjectFunction<V>, it.unimi.dsi.fastutil.Function<Float,V>, Serializable, DoubleFunction<V>, Function<Float,V>
Direct Known Subclasses:
Float2ObjectMaps.SynchronizedMap
Enclosing class:
Float2ObjectFunctions

public static class Float2ObjectFunctions.SynchronizedFunction<V> extends Object implements it.unimi.dsi.fastutil.floats.Float2ObjectFunction<V>, Serializable
A synchronized wrapper class for functions.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final it.unimi.dsi.fastutil.floats.Float2ObjectFunction<V>
     
    protected final Object
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    SynchronizedFunction(it.unimi.dsi.fastutil.floats.Float2ObjectFunction<V> f)
     
    protected
    SynchronizedFunction(it.unimi.dsi.fastutil.floats.Float2ObjectFunction<V> f, Object sync)
     
  • Method Summary

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

    Methods inherited from class java.lang.Object

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

    Methods inherited from interface it.unimi.dsi.fastutil.floats.Float2ObjectFunction

    andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort

    Methods inherited from interface java.util.function.Function

    andThen
  • Field Details

    • function

      protected final it.unimi.dsi.fastutil.floats.Float2ObjectFunction<V> function
    • sync

      protected final Object sync
  • Constructor Details

    • SynchronizedFunction

      protected SynchronizedFunction(it.unimi.dsi.fastutil.floats.Float2ObjectFunction<V> f, Object sync)
    • SynchronizedFunction

      protected SynchronizedFunction(it.unimi.dsi.fastutil.floats.Float2ObjectFunction<V> f)
  • Method Details

    • apply

      @Deprecated public V apply(double operand)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      apply in interface DoubleFunction<V>
      Specified by:
      apply in interface it.unimi.dsi.fastutil.floats.Float2ObjectFunction<V>
    • apply

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

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

      public V defaultReturnValue()
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.floats.Float2ObjectFunction<V>
    • defaultReturnValue

      public void defaultReturnValue(V defRetValue)
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.floats.Float2ObjectFunction<V>
    • containsKey

      public boolean containsKey(float k)
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.floats.Float2ObjectFunction<V>
    • containsKey

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

      public V put(float k, V v)
      Specified by:
      put in interface it.unimi.dsi.fastutil.floats.Float2ObjectFunction<V>
    • get

      public V get(float k)
      Specified by:
      get in interface it.unimi.dsi.fastutil.floats.Float2ObjectFunction<V>
    • getOrDefault

      public V getOrDefault(float k, V defaultValue)
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.floats.Float2ObjectFunction<V>
    • remove

      public V remove(float k)
      Specified by:
      remove in interface it.unimi.dsi.fastutil.floats.Float2ObjectFunction<V>
    • clear

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

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

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

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

      @Deprecated public V remove(Object k)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      remove in interface it.unimi.dsi.fastutil.floats.Float2ObjectFunction<V>
      Specified by:
      remove in interface it.unimi.dsi.fastutil.Function<Float,V>
    • 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