Class Int2IntFunctions.SynchronizedFunction

java.lang.Object
it.unimi.dsi.fastutil.ints.Int2IntFunctions.SynchronizedFunction
All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<Integer,Integer>, it.unimi.dsi.fastutil.ints.Int2IntFunction, Serializable, Function<Integer,Integer>, IntUnaryOperator
Direct Known Subclasses:
Int2IntMaps.SynchronizedMap
Enclosing class:
Int2IntFunctions

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

    • function

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

      protected final Object sync
  • Constructor Details

    • SynchronizedFunction

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

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

    • applyAsInt

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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