Class Double2LongFunctions.SynchronizedFunction

java.lang.Object
it.unimi.dsi.fastutil.doubles.Double2LongFunctions.SynchronizedFunction
All Implemented Interfaces:
it.unimi.dsi.fastutil.doubles.Double2LongFunction, it.unimi.dsi.fastutil.Function<Double,Long>, Serializable, DoubleToLongFunction, Function<Double,Long>
Direct Known Subclasses:
Double2LongMaps.SynchronizedMap
Enclosing class:
Double2LongFunctions

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

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

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

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

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

      protected final Object sync
  • Constructor Details

    • SynchronizedFunction

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

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

    • applyAsLong

      public long applyAsLong(double operand)
      Specified by:
      applyAsLong in interface it.unimi.dsi.fastutil.doubles.Double2LongFunction
      Specified by:
      applyAsLong in interface DoubleToLongFunction
    • apply

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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