Class Int2FloatFunctions.SynchronizedFunction

java.lang.Object
it.unimi.dsi.fastutil.ints.Int2FloatFunctions.SynchronizedFunction
All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<Integer,Float>, it.unimi.dsi.fastutil.ints.Int2FloatFunction, Serializable, Function<Integer,Float>, IntToDoubleFunction
Direct Known Subclasses:
Int2FloatMaps.SynchronizedMap
Enclosing class:
Int2FloatFunctions

public static class Int2FloatFunctions.SynchronizedFunction extends Object implements it.unimi.dsi.fastutil.ints.Int2FloatFunction, Serializable
A synchronized wrapper class for functions.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final it.unimi.dsi.fastutil.ints.Int2FloatFunction
     
    protected final Object
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    SynchronizedFunction(it.unimi.dsi.fastutil.ints.Int2FloatFunction f)
     
    protected
    SynchronizedFunction(it.unimi.dsi.fastutil.ints.Int2FloatFunction f, Object sync)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Please use the corresponding type-specific method instead.
    double
    applyAsDouble(int operand)
     
    void
     
    boolean
    containsKey(int k)
     
    boolean
    Deprecated.
    float
     
    void
    defaultReturnValue(float defRetValue)
     
    boolean
     
    float
    get(int k)
     
    Deprecated.
    Please use the corresponding type-specific method instead.
    float
    getOrDefault(int k, float defaultValue)
     
    getOrDefault(Object k, Float defaultValue)
    Deprecated.
    Please use the corresponding type-specific method instead.
    int
     
    float
    put(int k, float v)
     
    put(Integer k, Float v)
    Deprecated.
    Please use the corresponding type-specific method instead.
    float
    remove(int 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.ints.Int2FloatFunction

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

    • function

      protected final it.unimi.dsi.fastutil.ints.Int2FloatFunction function
    • sync

      protected final Object sync
  • Constructor Details

    • SynchronizedFunction

      protected SynchronizedFunction(it.unimi.dsi.fastutil.ints.Int2FloatFunction f, Object sync)
    • SynchronizedFunction

      protected SynchronizedFunction(it.unimi.dsi.fastutil.ints.Int2FloatFunction f)
  • Method Details

    • applyAsDouble

      public double applyAsDouble(int operand)
      Specified by:
      applyAsDouble in interface it.unimi.dsi.fastutil.ints.Int2FloatFunction
      Specified by:
      applyAsDouble in interface IntToDoubleFunction
    • apply

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

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

      public float defaultReturnValue()
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.ints.Int2FloatFunction
    • defaultReturnValue

      public void defaultReturnValue(float defRetValue)
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.ints.Int2FloatFunction
    • containsKey

      public boolean containsKey(int k)
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.ints.Int2FloatFunction
    • containsKey

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

      public float put(int k, float v)
      Specified by:
      put in interface it.unimi.dsi.fastutil.ints.Int2FloatFunction
    • get

      public float get(int k)
      Specified by:
      get in interface it.unimi.dsi.fastutil.ints.Int2FloatFunction
    • getOrDefault

      public float getOrDefault(int k, float defaultValue)
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.ints.Int2FloatFunction
    • remove

      public float remove(int k)
      Specified by:
      remove in interface it.unimi.dsi.fastutil.ints.Int2FloatFunction
    • clear

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

      @Deprecated public Float put(Integer k, Float v)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      put in interface it.unimi.dsi.fastutil.Function<Integer,Float>
      Specified by:
      put in interface it.unimi.dsi.fastutil.ints.Int2FloatFunction
    • 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<Integer,Float>
      Specified by:
      get in interface it.unimi.dsi.fastutil.ints.Int2FloatFunction
    • 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<Integer,Float>
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.ints.Int2FloatFunction
    • 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<Integer,Float>
      Specified by:
      remove in interface it.unimi.dsi.fastutil.ints.Int2FloatFunction
    • 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