Package it.unimi.dsi.fastutil.longs
Class Long2CharFunctions.SynchronizedFunction
java.lang.Object
it.unimi.dsi.fastutil.longs.Long2CharFunctions.SynchronizedFunction
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<java.lang.Long,java.lang.Character>,it.unimi.dsi.fastutil.longs.Long2CharFunction,java.io.Serializable,java.util.function.Function<java.lang.Long,java.lang.Character>,java.util.function.LongToIntFunction
- Direct Known Subclasses:
Long2CharMaps.SynchronizedMap
- Enclosing class:
- Long2CharFunctions
public static class Long2CharFunctions.SynchronizedFunction
extends java.lang.Object
implements it.unimi.dsi.fastutil.longs.Long2CharFunction, java.io.Serializable
A synchronized wrapper class for functions.
- See Also:
- Serialized Form
-
Method Summary
Modifier and Type Method Description java.lang.Characterapply(java.lang.Long key)Deprecated.Please use the corresponding type-specific method instead.intapplyAsInt(long operand)voidclear()booleancontainsKey(long k)booleancontainsKey(java.lang.Object k)Deprecated.chardefaultReturnValue()voiddefaultReturnValue(char defRetValue)booleanequals(java.lang.Object o)charget(long k)java.lang.Characterget(java.lang.Object k)Deprecated.Please use the corresponding type-specific method instead.chargetOrDefault(long k, char defaultValue)java.lang.CharactergetOrDefault(java.lang.Object k, java.lang.Character defaultValue)Deprecated.Please use the corresponding type-specific method instead.inthashCode()charput(long k, char v)java.lang.Characterput(java.lang.Long k, java.lang.Character v)Deprecated.Please use the corresponding type-specific method instead.charremove(long k)java.lang.Characterremove(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.longs.Long2CharFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort
-
Method Details
-
applyAsInt
public int applyAsInt(long operand)- Specified by:
applyAsIntin interfaceit.unimi.dsi.fastutil.longs.Long2CharFunction- Specified by:
applyAsIntin interfacejava.util.function.LongToIntFunction
-
apply
@Deprecated public java.lang.Character apply(java.lang.Long key)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
applyin interfaceit.unimi.dsi.fastutil.Function<java.lang.Long,java.lang.Character>- Specified by:
applyin interfacejava.util.function.Function<java.lang.Long,java.lang.Character>
-
size
public int size()- Specified by:
sizein interfaceit.unimi.dsi.fastutil.Function<java.lang.Long,java.lang.Character>
-
defaultReturnValue
public char defaultReturnValue()- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.longs.Long2CharFunction
-
defaultReturnValue
public void defaultReturnValue(char defRetValue)- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.longs.Long2CharFunction
-
containsKey
public boolean containsKey(long k)- Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.longs.Long2CharFunction
-
containsKey
@Deprecated public boolean containsKey(java.lang.Object k)Deprecated.- Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.Function<java.lang.Long,java.lang.Character>- Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.longs.Long2CharFunction
-
put
public char put(long k, char v)- Specified by:
putin interfaceit.unimi.dsi.fastutil.longs.Long2CharFunction
-
get
public char get(long k)- Specified by:
getin interfaceit.unimi.dsi.fastutil.longs.Long2CharFunction
-
getOrDefault
public char getOrDefault(long k, char defaultValue)- Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.longs.Long2CharFunction
-
remove
public char remove(long k)- Specified by:
removein interfaceit.unimi.dsi.fastutil.longs.Long2CharFunction
-
clear
public void clear()- Specified by:
clearin interfaceit.unimi.dsi.fastutil.Function<java.lang.Long,java.lang.Character>
-
put
@Deprecated public java.lang.Character put(java.lang.Long k, java.lang.Character v)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
putin interfaceit.unimi.dsi.fastutil.Function<java.lang.Long,java.lang.Character>- Specified by:
putin interfaceit.unimi.dsi.fastutil.longs.Long2CharFunction
-
get
@Deprecated public java.lang.Character get(java.lang.Object k)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
getin interfaceit.unimi.dsi.fastutil.Function<java.lang.Long,java.lang.Character>- Specified by:
getin interfaceit.unimi.dsi.fastutil.longs.Long2CharFunction
-
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:
getOrDefaultin interfaceit.unimi.dsi.fastutil.Function<java.lang.Long,java.lang.Character>- Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.longs.Long2CharFunction
-
remove
@Deprecated public java.lang.Character remove(java.lang.Object k)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
removein interfaceit.unimi.dsi.fastutil.Function<java.lang.Long,java.lang.Character>- Specified by:
removein interfaceit.unimi.dsi.fastutil.longs.Long2CharFunction
-
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
-