Class Short2LongFunctions.SynchronizedFunction

java.lang.Object
it.unimi.dsi.fastutil.shorts.Short2LongFunctions.SynchronizedFunction
All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<java.lang.Short,​java.lang.Long>, it.unimi.dsi.fastutil.shorts.Short2LongFunction, java.io.Serializable, java.util.function.Function<java.lang.Short,​java.lang.Long>, java.util.function.IntToLongFunction
Direct Known Subclasses:
Short2LongMaps.SynchronizedMap
Enclosing class:
Short2LongFunctions

public static class Short2LongFunctions.SynchronizedFunction
extends java.lang.Object
implements it.unimi.dsi.fastutil.shorts.Short2LongFunction, 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.Short key)
    Deprecated.
    Please use the corresponding type-specific method instead.
    long applyAsLong​(int operand)
    Deprecated.
    Please use the corresponding type-specific method instead.
    void clear()  
    boolean containsKey​(short k)  
    boolean containsKey​(java.lang.Object k)
    Deprecated.
    long defaultReturnValue()  
    void defaultReturnValue​(long defRetValue)  
    boolean equals​(java.lang.Object o)  
    long get​(short k)  
    java.lang.Long get​(java.lang.Object k)
    Deprecated.
    Please use the corresponding type-specific method instead.
    long getOrDefault​(short 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​(short k, long v)  
    java.lang.Long put​(java.lang.Short k, java.lang.Long v)
    Deprecated.
    Please use the corresponding type-specific method instead.
    long remove​(short 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.shorts.Short2LongFunction

    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​(int operand)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      applyAsLong in interface java.util.function.IntToLongFunction
      Specified by:
      applyAsLong in interface it.unimi.dsi.fastutil.shorts.Short2LongFunction
    • apply

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

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

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

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

      public boolean containsKey​(short k)
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.shorts.Short2LongFunction
    • containsKey

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

      public long put​(short k, long v)
      Specified by:
      put in interface it.unimi.dsi.fastutil.shorts.Short2LongFunction
    • get

      public long get​(short k)
      Specified by:
      get in interface it.unimi.dsi.fastutil.shorts.Short2LongFunction
    • getOrDefault

      public long getOrDefault​(short k, long defaultValue)
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.shorts.Short2LongFunction
    • remove

      public long remove​(short k)
      Specified by:
      remove in interface it.unimi.dsi.fastutil.shorts.Short2LongFunction
    • clear

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

      @Deprecated public java.lang.Long put​(java.lang.Short k, java.lang.Long v)
      Deprecated.
      Please use the corresponding type-specific method instead.
      Specified by:
      put in interface it.unimi.dsi.fastutil.Function<java.lang.Short,​java.lang.Long>
      Specified by:
      put in interface it.unimi.dsi.fastutil.shorts.Short2LongFunction
    • 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.Function<java.lang.Short,​java.lang.Long>
      Specified by:
      get in interface it.unimi.dsi.fastutil.shorts.Short2LongFunction
    • 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.Function<java.lang.Short,​java.lang.Long>
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.shorts.Short2LongFunction
    • 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.Function<java.lang.Short,​java.lang.Long>
      Specified by:
      remove in interface it.unimi.dsi.fastutil.shorts.Short2LongFunction
    • 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