Class Double2DoubleFunctions.SynchronizedFunction

java.lang.Object
it.unimi.dsi.fastutil.doubles.Double2DoubleFunctions.SynchronizedFunction
All Implemented Interfaces:
it.unimi.dsi.fastutil.doubles.Double2DoubleFunction, it.unimi.dsi.fastutil.Function<Double,Double>, Serializable, DoubleUnaryOperator, Function<Double,Double>
Direct Known Subclasses:
Double2DoubleMaps.SynchronizedMap
Enclosing class:
Double2DoubleFunctions

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

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

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

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

    andThen, 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.DoubleUnaryOperator

    andThen, compose
  • Field Details

    • function

      protected final it.unimi.dsi.fastutil.doubles.Double2DoubleFunction function
    • sync

      protected final Object sync
  • Constructor Details

    • SynchronizedFunction

      protected SynchronizedFunction(it.unimi.dsi.fastutil.doubles.Double2DoubleFunction f, Object sync)
    • SynchronizedFunction

      protected SynchronizedFunction(it.unimi.dsi.fastutil.doubles.Double2DoubleFunction f)
  • Method Details

    • applyAsDouble

      public double applyAsDouble(double operand)
      Specified by:
      applyAsDouble in interface it.unimi.dsi.fastutil.doubles.Double2DoubleFunction
      Specified by:
      applyAsDouble in interface DoubleUnaryOperator
    • apply

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

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

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

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

      public boolean containsKey(double k)
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.doubles.Double2DoubleFunction
    • containsKey

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

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

      public double get(double k)
      Specified by:
      get in interface it.unimi.dsi.fastutil.doubles.Double2DoubleFunction
    • getOrDefault

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

      public double remove(double k)
      Specified by:
      remove in interface it.unimi.dsi.fastutil.doubles.Double2DoubleFunction
    • clear

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

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