Class Int2CharFunctions.SynchronizedFunction

java.lang.Object
it.unimi.dsi.fastutil.ints.Int2CharFunctions.SynchronizedFunction
All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<Integer,Character>, it.unimi.dsi.fastutil.ints.Int2CharFunction, Serializable, Function<Integer,Character>, IntUnaryOperator
Direct Known Subclasses:
Int2CharMaps.SynchronizedMap
Enclosing class:
Int2CharFunctions

public static class Int2CharFunctions.SynchronizedFunction extends Object implements it.unimi.dsi.fastutil.ints.Int2CharFunction, Serializable
A synchronized wrapper class for functions.
See Also:
  • Field Details

    • function

      protected final it.unimi.dsi.fastutil.ints.Int2CharFunction function
    • sync

      protected final Object sync
  • Constructor Details

    • SynchronizedFunction

      protected SynchronizedFunction(it.unimi.dsi.fastutil.ints.Int2CharFunction f, Object sync)
    • SynchronizedFunction

      protected SynchronizedFunction(it.unimi.dsi.fastutil.ints.Int2CharFunction f)
  • Method Details

    • applyAsInt

      public int applyAsInt(int operand)
      Specified by:
      applyAsInt in interface it.unimi.dsi.fastutil.ints.Int2CharFunction
      Specified by:
      applyAsInt in interface IntUnaryOperator
    • apply

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

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

      public char defaultReturnValue()
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.ints.Int2CharFunction
    • defaultReturnValue

      public void defaultReturnValue(char defRetValue)
      Specified by:
      defaultReturnValue in interface it.unimi.dsi.fastutil.ints.Int2CharFunction
    • containsKey

      public boolean containsKey(int k)
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.ints.Int2CharFunction
    • containsKey

      @Deprecated public boolean containsKey(Object k)
      Deprecated.
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.Function<Integer,Character>
      Specified by:
      containsKey in interface it.unimi.dsi.fastutil.ints.Int2CharFunction
    • put

      public char put(int k, char v)
      Specified by:
      put in interface it.unimi.dsi.fastutil.ints.Int2CharFunction
    • get

      public char get(int k)
      Specified by:
      get in interface it.unimi.dsi.fastutil.ints.Int2CharFunction
    • getOrDefault

      public char getOrDefault(int k, char defaultValue)
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.ints.Int2CharFunction
    • remove

      public char remove(int k)
      Specified by:
      remove in interface it.unimi.dsi.fastutil.ints.Int2CharFunction
    • clear

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

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

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

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

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