Package it.unimi.dsi.fastutil.chars
Class Char2ShortFunctions.SynchronizedFunction
java.lang.Object
it.unimi.dsi.fastutil.chars.Char2ShortFunctions.SynchronizedFunction
- All Implemented Interfaces:
it.unimi.dsi.fastutil.chars.Char2ShortFunction,it.unimi.dsi.fastutil.Function<java.lang.Character,java.lang.Short>,java.io.Serializable,java.util.function.Function<java.lang.Character,java.lang.Short>,java.util.function.IntUnaryOperator
- Direct Known Subclasses:
Char2ShortMaps.SynchronizedMap
- Enclosing class:
- Char2ShortFunctions
public static class Char2ShortFunctions.SynchronizedFunction
extends java.lang.Object
implements it.unimi.dsi.fastutil.chars.Char2ShortFunction, java.io.Serializable
A synchronized wrapper class for functions.
- See Also:
- Serialized Form
-
Method Summary
Modifier and Type Method Description java.lang.Shortapply(java.lang.Character key)Deprecated.Please use the corresponding type-specific method instead.intapplyAsInt(int operand)Deprecated.Please use the corresponding type-specific method instead.voidclear()booleancontainsKey(char k)booleancontainsKey(java.lang.Object k)Deprecated.shortdefaultReturnValue()voiddefaultReturnValue(short defRetValue)booleanequals(java.lang.Object o)shortget(char k)java.lang.Shortget(java.lang.Object k)Deprecated.Please use the corresponding type-specific method instead.shortgetOrDefault(char k, short defaultValue)java.lang.ShortgetOrDefault(java.lang.Object k, java.lang.Short defaultValue)Deprecated.Please use the corresponding type-specific method instead.inthashCode()shortput(char k, short v)java.lang.Shortput(java.lang.Character k, java.lang.Short v)Deprecated.Please use the corresponding type-specific method instead.shortremove(char k)java.lang.Shortremove(java.lang.Object k)Deprecated.Please use the corresponding type-specific method instead.intsize()java.lang.StringtoString()Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.chars.Char2ShortFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShortMethods inherited from interface java.util.function.IntUnaryOperator
andThen, compose
-
Method Details
-
applyAsInt
@Deprecated public int applyAsInt(int operand)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
applyAsIntin interfaceit.unimi.dsi.fastutil.chars.Char2ShortFunction- Specified by:
applyAsIntin interfacejava.util.function.IntUnaryOperator
-
apply
@Deprecated public java.lang.Short apply(java.lang.Character key)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
applyin interfaceit.unimi.dsi.fastutil.Function<java.lang.Character,java.lang.Short>- Specified by:
applyin interfacejava.util.function.Function<java.lang.Character,java.lang.Short>
-
size
public int size()- Specified by:
sizein interfaceit.unimi.dsi.fastutil.Function<java.lang.Character,java.lang.Short>
-
defaultReturnValue
public short defaultReturnValue()- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.chars.Char2ShortFunction
-
defaultReturnValue
public void defaultReturnValue(short defRetValue)- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.chars.Char2ShortFunction
-
containsKey
public boolean containsKey(char k)- Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.chars.Char2ShortFunction
-
containsKey
@Deprecated public boolean containsKey(java.lang.Object k)Deprecated.- Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.chars.Char2ShortFunction- Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.Function<java.lang.Character,java.lang.Short>
-
put
public short put(char k, short v)- Specified by:
putin interfaceit.unimi.dsi.fastutil.chars.Char2ShortFunction
-
get
public short get(char k)- Specified by:
getin interfaceit.unimi.dsi.fastutil.chars.Char2ShortFunction
-
getOrDefault
public short getOrDefault(char k, short defaultValue)- Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.chars.Char2ShortFunction
-
remove
public short remove(char k)- Specified by:
removein interfaceit.unimi.dsi.fastutil.chars.Char2ShortFunction
-
clear
public void clear()- Specified by:
clearin interfaceit.unimi.dsi.fastutil.Function<java.lang.Character,java.lang.Short>
-
put
@Deprecated public java.lang.Short put(java.lang.Character k, java.lang.Short v)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
putin interfaceit.unimi.dsi.fastutil.chars.Char2ShortFunction- Specified by:
putin interfaceit.unimi.dsi.fastutil.Function<java.lang.Character,java.lang.Short>
-
get
@Deprecated public java.lang.Short get(java.lang.Object k)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
getin interfaceit.unimi.dsi.fastutil.chars.Char2ShortFunction- Specified by:
getin interfaceit.unimi.dsi.fastutil.Function<java.lang.Character,java.lang.Short>
-
getOrDefault
@Deprecated public java.lang.Short getOrDefault(java.lang.Object k, java.lang.Short defaultValue)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.chars.Char2ShortFunction- Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.Function<java.lang.Character,java.lang.Short>
-
remove
@Deprecated public java.lang.Short remove(java.lang.Object k)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
removein interfaceit.unimi.dsi.fastutil.chars.Char2ShortFunction- Specified by:
removein interfaceit.unimi.dsi.fastutil.Function<java.lang.Character,java.lang.Short>
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-