Class Float2LongFunctions.SynchronizedFunction

java.lang.Object
it.unimi.dsi.fastutil.floats.Float2LongFunctions.SynchronizedFunction
All Implemented Interfaces:
it.unimi.dsi.fastutil.floats.Float2LongFunction, it.unimi.dsi.fastutil.Function<java.lang.Float,​java.lang.Long>, java.io.Serializable, java.util.function.DoubleToLongFunction, java.util.function.Function<java.lang.Float,​java.lang.Long>
Direct Known Subclasses:
Float2LongMaps.SynchronizedMap
Enclosing class:
Float2LongFunctions

public static class Float2LongFunctions.SynchronizedFunction
extends java.lang.Object
implements it.unimi.dsi.fastutil.floats.Float2LongFunction, java.io.Serializable
A synchronized wrapper class for functions.
See Also:
Serialized Form
  • Method Summary

    Modifier and Type Method Description
    java.lang.Long apply​(java.lang.Float key)
    Deprecated.
    Please use the corresponding type-specific method instead.
    long applyAsLong​(double operand)
    Deprecated.
    Please use the corresponding type-specific method instead.
    void clear()  
    boolean containsKey​(float k)  
    boolean containsKey​(java.lang.Object k)
    Deprecated.
    long defaultReturnValue()  
    void defaultReturnValue​(long defRetValue)  
    boolean equals​(java.lang.Object o)  
    long get​(float k)  
    java.lang.Long get​(java.lang.Object k)
    Deprecated.
    Please use the corresponding type-specific method instead.
    long getOrDefault​(float k, long defaultValue)  
    java.lang.Long getOrDefault​(java.lang.Object k, java.lang.Long defaultValue)
    Deprecated.
    Please use the corresponding type-specific method instead.
    int hashCode()  
    long put​(float k, long v)  
    java.lang.Long put​(java.lang.Float k, java.lang.Long v)
    Deprecated.
    Please use the corresponding type-specific method instead.
    long remove​(float k)  
    java.lang.Long remove​(java.lang.Object k)
    Deprecated.
    Please use the corresponding type-specific method instead.
    int size()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface it.unimi.dsi.fastutil.floats.Float2LongFunction

    andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort
  • Method Details

    • applyAsLong

      @Deprecated public long applyAsLong​(double operand)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      applyAsLong in interface java.util.function.DoubleToLongFunction
      Specified by:
      applyAsLong in interface it.unimi.dsi.fastutil.floats.Float2LongFunction
    • apply

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

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

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

      public void defaultReturnValue​(long defRetValue)
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.floats.Float2LongFunction
    • containsKey

      public boolean containsKey​(float k)
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.floats.Float2LongFunction
    • containsKey

      @Deprecated public boolean containsKey​(java.lang.Object k)
      Deprecated.
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.floats.Float2LongFunction
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.Function<java.lang.Float,​java.lang.Long>
    • put

      public long put​(float k, long v)
      Specified by:
      put in interface it.unimi.dsi.fastutil.floats.Float2LongFunction
    • get

      public long get​(float k)
      Specified by:
      get in interface it.unimi.dsi.fastutil.floats.Float2LongFunction
    • getOrDefault

      public long getOrDefault​(float k, long defaultValue)
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.floats.Float2LongFunction
    • remove

      public long remove​(float k)
      Specified by:
      remove in interface it.unimi.dsi.fastutil.floats.Float2LongFunction
    • clear

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

      @Deprecated public java.lang.Long put​(java.lang.Float k, java.lang.Long v)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      put in interface it.unimi.dsi.fastutil.floats.Float2LongFunction
      Specified by:
      put in interface it.unimi.dsi.fastutil.Function<java.lang.Float,​java.lang.Long>
    • get

      @Deprecated public java.lang.Long get​(java.lang.Object k)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      get in interface it.unimi.dsi.fastutil.floats.Float2LongFunction
      Specified by:
      get in interface it.unimi.dsi.fastutil.Function<java.lang.Float,​java.lang.Long>
    • getOrDefault

      @Deprecated public java.lang.Long getOrDefault​(java.lang.Object k, java.lang.Long defaultValue)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.floats.Float2LongFunction
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.Function<java.lang.Float,​java.lang.Long>
    • remove

      @Deprecated public java.lang.Long remove​(java.lang.Object k)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      remove in interface it.unimi.dsi.fastutil.floats.Float2LongFunction
      Specified by:
      remove in interface it.unimi.dsi.fastutil.Function<java.lang.Float,​java.lang.Long>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object