Class Double2CharFunctions.SynchronizedFunction

java.lang.Object
it.unimi.dsi.fastutil.doubles.Double2CharFunctions.SynchronizedFunction
All Implemented Interfaces:
it.unimi.dsi.fastutil.doubles.Double2CharFunction, it.unimi.dsi.fastutil.Function<Double,Character>, Serializable, DoubleToIntFunction, Function<Double,Character>
Direct Known Subclasses:
Double2CharMaps.SynchronizedMap
Enclosing class:
Double2CharFunctions

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

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

    Constructors
    Modifier
    Constructor
    Description
    protected
    SynchronizedFunction(it.unimi.dsi.fastutil.doubles.Double2CharFunction f)
     
    protected
    SynchronizedFunction(it.unimi.dsi.fastutil.doubles.Double2CharFunction 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.
    char
     
    void
    defaultReturnValue(char defRetValue)
     
    boolean
     
    char
    get(double k)
     
    Deprecated.
    Please use the corresponding type-specific method instead.
    char
    getOrDefault(double k, char defaultValue)
     
    getOrDefault(Object k, Character defaultValue)
    Deprecated.
    Please use the corresponding type-specific method instead.
    int
     
    char
    put(double k, char v)
     
    Deprecated.
    Please use the corresponding type-specific method instead.
    char
    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.Double2CharFunction

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

      protected final Object sync
  • Constructor Details

    • SynchronizedFunction

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

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

    • applyAsInt

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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