Class Double2IntFunctions.SynchronizedFunction

java.lang.Object
it.unimi.dsi.fastutil.doubles.Double2IntFunctions.SynchronizedFunction
All Implemented Interfaces:
it.unimi.dsi.fastutil.doubles.Double2IntFunction, it.unimi.dsi.fastutil.Function<Double,Integer>, Serializable, DoubleToIntFunction, Function<Double,Integer>
Direct Known Subclasses:
Double2IntMaps.SynchronizedMap
Enclosing class:
Double2IntFunctions

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

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

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

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

    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.doubles.Double2IntFunction function
    • sync

      protected final Object sync
  • Constructor Details

    • SynchronizedFunction

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

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

    • applyAsInt

      public int applyAsInt(double operand)
      Specified by:
      applyAsInt in interface it.unimi.dsi.fastutil.doubles.Double2IntFunction
      Specified by:
      applyAsInt in interface DoubleToIntFunction
    • apply

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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