Class Object2ShortFunctions.SynchronizedFunction<K>

java.lang.Object
it.unimi.dsi.fastutil.objects.Object2ShortFunctions.SynchronizedFunction<K>
All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,Short>, it.unimi.dsi.fastutil.objects.Object2ShortFunction<K>, Serializable, Function<K,Short>, ToIntFunction<K>
Direct Known Subclasses:
Object2ShortMaps.SynchronizedMap
Enclosing class:
Object2ShortFunctions

public static class Object2ShortFunctions.SynchronizedFunction<K> extends Object implements it.unimi.dsi.fastutil.objects.Object2ShortFunction<K>, Serializable
A synchronized wrapper class for functions.
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected final it.unimi.dsi.fastutil.objects.Object2ShortFunction<K>
     
    protected final Object
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    SynchronizedFunction(it.unimi.dsi.fastutil.objects.Object2ShortFunction<K> f)
     
    protected
    SynchronizedFunction(it.unimi.dsi.fastutil.objects.Object2ShortFunction<K> f, Object sync)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    apply(K key)
    Deprecated.
    Please use the corresponding type-specific method instead.
    int
    applyAsInt(K operand)
     
    void
     
    boolean
     
    short
     
    void
    defaultReturnValue(short defRetValue)
     
    boolean
     
    Deprecated.
    Please use the corresponding type-specific method instead.
    short
    getOrDefault(Object k, short defaultValue)
     
    getOrDefault(Object k, Short defaultValue)
    Deprecated.
    Please use the corresponding type-specific method instead.
    short
     
    int
     
    short
    put(K k, short v)
     
    put(K k, Short v)
    Deprecated.
    Please use the corresponding type-specific method instead.
    Deprecated.
    Please use the corresponding type-specific method instead.
    short
     
    int
     
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.function.Function

    compose

    Methods inherited from interface it.unimi.dsi.fastutil.objects.Object2ShortFunction

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

    • function

      protected final it.unimi.dsi.fastutil.objects.Object2ShortFunction<K> function
    • sync

      protected final Object sync
  • Constructor Details

    • SynchronizedFunction

      protected SynchronizedFunction(it.unimi.dsi.fastutil.objects.Object2ShortFunction<K> f, Object sync)
    • SynchronizedFunction

      protected SynchronizedFunction(it.unimi.dsi.fastutil.objects.Object2ShortFunction<K> f)
  • Method Details

    • applyAsInt

      public int applyAsInt(K operand)
      Specified by:
      applyAsInt in interface it.unimi.dsi.fastutil.objects.Object2ShortFunction<K>
      Specified by:
      applyAsInt in interface ToIntFunction<K>
    • apply

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

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

      public short defaultReturnValue()
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.objects.Object2ShortFunction<K>
    • defaultReturnValue

      public void defaultReturnValue(short defRetValue)
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.objects.Object2ShortFunction<K>
    • containsKey

      public boolean containsKey(Object k)
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.Function<K,Short>
    • put

      public short put(K k, short v)
      Specified by:
      put in interface it.unimi.dsi.fastutil.objects.Object2ShortFunction<K>
    • getShort

      public short getShort(Object k)
      Specified by:
      getShort in interface it.unimi.dsi.fastutil.objects.Object2ShortFunction<K>
    • getOrDefault

      public short getOrDefault(Object k, short defaultValue)
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.objects.Object2ShortFunction<K>
    • removeShort

      public short removeShort(Object k)
      Specified by:
      removeShort in interface it.unimi.dsi.fastutil.objects.Object2ShortFunction<K>
    • clear

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

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

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

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

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