Class Object2ByteFunctions.SynchronizedFunction<K>

java.lang.Object
it.unimi.dsi.fastutil.objects.Object2ByteFunctions.SynchronizedFunction<K>
All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,Byte>, it.unimi.dsi.fastutil.objects.Object2ByteFunction<K>, Serializable, Function<K,Byte>, ToIntFunction<K>
Direct Known Subclasses:
Object2ByteMaps.SynchronizedMap
Enclosing class:
Object2ByteFunctions

public static class Object2ByteFunctions.SynchronizedFunction<K> extends Object implements it.unimi.dsi.fastutil.objects.Object2ByteFunction<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.Object2ByteFunction<K>
     
    protected final Object
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    SynchronizedFunction(it.unimi.dsi.fastutil.objects.Object2ByteFunction<K> f)
     
    protected
    SynchronizedFunction(it.unimi.dsi.fastutil.objects.Object2ByteFunction<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
     
    byte
     
    void
    defaultReturnValue(byte defRetValue)
     
    boolean
     
    Deprecated.
    Please use the corresponding type-specific method instead.
    byte
     
    byte
    getOrDefault(Object k, byte defaultValue)
     
    getOrDefault(Object k, Byte defaultValue)
    Deprecated.
    Please use the corresponding type-specific method instead.
    int
     
    byte
    put(K k, byte v)
     
    put(K k, Byte v)
    Deprecated.
    Please use the corresponding type-specific method instead.
    Deprecated.
    Please use the corresponding type-specific method instead.
    byte
     
    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.Object2ByteFunction

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

      protected final Object sync
  • Constructor Details

    • SynchronizedFunction

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

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

    • applyAsInt

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

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

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

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

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

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

      public byte put(K k, byte v)
      Specified by:
      put in interface it.unimi.dsi.fastutil.objects.Object2ByteFunction<K>
    • getByte

      public byte getByte(Object k)
      Specified by:
      getByte in interface it.unimi.dsi.fastutil.objects.Object2ByteFunction<K>
    • getOrDefault

      public byte getOrDefault(Object k, byte defaultValue)
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.objects.Object2ByteFunction<K>
    • removeByte

      public byte removeByte(Object k)
      Specified by:
      removeByte in interface it.unimi.dsi.fastutil.objects.Object2ByteFunction<K>
    • clear

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

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

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

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

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