Class Byte2DoubleFunctions.SynchronizedFunction

java.lang.Object
it.unimi.dsi.fastutil.bytes.Byte2DoubleFunctions.SynchronizedFunction
All Implemented Interfaces:
it.unimi.dsi.fastutil.bytes.Byte2DoubleFunction, it.unimi.dsi.fastutil.Function<Byte,Double>, Serializable, Function<Byte,Double>, IntToDoubleFunction
Direct Known Subclasses:
Byte2DoubleMaps.SynchronizedMap
Enclosing class:
Byte2DoubleFunctions

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

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

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

    Modifier and Type
    Method
    Description
    apply(Byte key)
    Deprecated.
    Please use the corresponding type-specific method instead.
    double
    applyAsDouble(int operand)
    Deprecated.
    Please use the corresponding type-specific method instead.
    void
     
    boolean
    containsKey(byte k)
     
    boolean
    Deprecated.
    double
     
    void
    defaultReturnValue(double defRetValue)
     
    boolean
     
    double
    get(byte k)
     
    Deprecated.
    Please use the corresponding type-specific method instead.
    double
    getOrDefault(byte k, double defaultValue)
     
    getOrDefault(Object k, Double defaultValue)
    Deprecated.
    Please use the corresponding type-specific method instead.
    int
     
    double
    put(byte k, double v)
     
    put(Byte k, Double v)
    Deprecated.
    Please use the corresponding type-specific method instead.
    double
    remove(byte 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.bytes.Byte2DoubleFunction

    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.bytes.Byte2DoubleFunction function
    • sync

      protected final Object sync
  • Constructor Details

    • SynchronizedFunction

      protected SynchronizedFunction(it.unimi.dsi.fastutil.bytes.Byte2DoubleFunction f, Object sync)
    • SynchronizedFunction

      protected SynchronizedFunction(it.unimi.dsi.fastutil.bytes.Byte2DoubleFunction f)
  • Method Details

    • applyAsDouble

      @Deprecated public double applyAsDouble(int operand)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      applyAsDouble in interface it.unimi.dsi.fastutil.bytes.Byte2DoubleFunction
      Specified by:
      applyAsDouble in interface IntToDoubleFunction
    • apply

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

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

      public double defaultReturnValue()
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.bytes.Byte2DoubleFunction
    • defaultReturnValue

      public void defaultReturnValue(double defRetValue)
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.bytes.Byte2DoubleFunction
    • containsKey

      public boolean containsKey(byte k)
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.bytes.Byte2DoubleFunction
    • containsKey

      @Deprecated public boolean containsKey(Object k)
      Deprecated.
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.bytes.Byte2DoubleFunction
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.Function<Byte,Double>
    • put

      public double put(byte k, double v)
      Specified by:
      put in interface it.unimi.dsi.fastutil.bytes.Byte2DoubleFunction
    • get

      public double get(byte k)
      Specified by:
      get in interface it.unimi.dsi.fastutil.bytes.Byte2DoubleFunction
    • getOrDefault

      public double getOrDefault(byte k, double defaultValue)
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.bytes.Byte2DoubleFunction
    • remove

      public double remove(byte k)
      Specified by:
      remove in interface it.unimi.dsi.fastutil.bytes.Byte2DoubleFunction
    • clear

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

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

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

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

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