Class Object2CharFunctions.SynchronizedFunction<K>

java.lang.Object
it.unimi.dsi.fastutil.objects.Object2CharFunctions.SynchronizedFunction<K>
All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,​java.lang.Character>, it.unimi.dsi.fastutil.objects.Object2CharFunction<K>, java.io.Serializable, java.util.function.Function<K,​java.lang.Character>, java.util.function.ToIntFunction<K>
Direct Known Subclasses:
Object2CharMaps.SynchronizedMap
Enclosing class:
Object2CharFunctions

public static class Object2CharFunctions.SynchronizedFunction<K>
extends java.lang.Object
implements it.unimi.dsi.fastutil.objects.Object2CharFunction<K>, java.io.Serializable
A synchronized wrapper class for functions.
See Also:
Serialized Form
  • Method Summary

    Modifier and Type Method Description
    java.lang.Character apply​(K key)
    Deprecated.
    Please use the corresponding type-specific method instead.
    int applyAsInt​(K operand)  
    void clear()  
    boolean containsKey​(java.lang.Object k)  
    char defaultReturnValue()  
    void defaultReturnValue​(char defRetValue)  
    boolean equals​(java.lang.Object o)  
    java.lang.Character get​(java.lang.Object k)
    Deprecated.
    Please use the corresponding type-specific method instead.
    char getChar​(java.lang.Object k)  
    char getOrDefault​(java.lang.Object k, char defaultValue)  
    java.lang.Character getOrDefault​(java.lang.Object k, java.lang.Character defaultValue)
    Deprecated.
    Please use the corresponding type-specific method instead.
    int hashCode()  
    char put​(K k, char v)  
    java.lang.Character put​(K k, java.lang.Character v)
    Deprecated.
    Please use the corresponding type-specific method instead.
    java.lang.Character remove​(java.lang.Object k)
    Deprecated.
    Please use the corresponding type-specific method instead.
    char removeChar​(java.lang.Object k)  
    int size()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.util.function.Function

    compose

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

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

    • applyAsInt

      public int applyAsInt​(K operand)
      Specified by:
      applyAsInt in interface it.unimi.dsi.fastutil.objects.Object2CharFunction<K>
      Specified by:
      applyAsInt in interface java.util.function.ToIntFunction<K>
    • apply

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

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

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

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

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

      public char put​(K k, char v)
      Specified by:
      put in interface it.unimi.dsi.fastutil.objects.Object2CharFunction<K>
    • getChar

      public char getChar​(java.lang.Object k)
      Specified by:
      getChar in interface it.unimi.dsi.fastutil.objects.Object2CharFunction<K>
    • getOrDefault

      public char getOrDefault​(java.lang.Object k, char defaultValue)
      Specified by:
      getOrDefault in interface it.unimi.dsi.fastutil.objects.Object2CharFunction<K>
    • removeChar

      public char removeChar​(java.lang.Object k)
      Specified by:
      removeChar in interface it.unimi.dsi.fastutil.objects.Object2CharFunction<K>
    • clear

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

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

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

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

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