Package it.unimi.dsi.fastutil.objects
Class Reference2ShortFunctions.SynchronizedFunction<K>
java.lang.Object
it.unimi.dsi.fastutil.objects.Reference2ShortFunctions.SynchronizedFunction<K>
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,,Short> it.unimi.dsi.fastutil.objects.Reference2ShortFunction<K>,Serializable,Function<K,,Short> ToIntFunction<K>
- Direct Known Subclasses:
Reference2ShortMaps.SynchronizedMap
- Enclosing class:
Reference2ShortFunctions
public static class Reference2ShortFunctions.SynchronizedFunction<K>
extends Object
implements it.unimi.dsi.fastutil.objects.Reference2ShortFunction<K>, Serializable
A synchronized wrapper class for functions.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSynchronizedFunction(it.unimi.dsi.fastutil.objects.Reference2ShortFunction<K> f) protectedSynchronizedFunction(it.unimi.dsi.fastutil.objects.Reference2ShortFunction<K> f, Object sync) -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Please use the corresponding type-specific method instead.intapplyAsInt(K operand) voidclear()booleanshortvoiddefaultReturnValue(short defRetValue) booleanDeprecated.Please use the corresponding type-specific method instead.shortgetOrDefault(Object k, short defaultValue) getOrDefault(Object k, Short defaultValue) Deprecated.Please use the corresponding type-specific method instead.shortinthashCode()shortDeprecated.Please use the corresponding type-specific method instead.Deprecated.Please use the corresponding type-specific method instead.shortintsize()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.objects.Reference2ShortFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort
-
Field Details
-
function
-
sync
-
-
Constructor Details
-
SynchronizedFunction
-
SynchronizedFunction
-
-
Method Details
-
applyAsInt
- Specified by:
applyAsIntin interfaceit.unimi.dsi.fastutil.objects.Reference2ShortFunction<K>- Specified by:
applyAsIntin interfaceToIntFunction<K>
-
apply
Deprecated.Please use the corresponding type-specific method instead. -
size
public int size() -
defaultReturnValue
public short defaultReturnValue()- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.objects.Reference2ShortFunction<K>
-
defaultReturnValue
public void defaultReturnValue(short defRetValue) - Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.objects.Reference2ShortFunction<K>
-
containsKey
-
put
- Specified by:
putin interfaceit.unimi.dsi.fastutil.objects.Reference2ShortFunction<K>
-
getShort
- Specified by:
getShortin interfaceit.unimi.dsi.fastutil.objects.Reference2ShortFunction<K>
-
getOrDefault
- Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.objects.Reference2ShortFunction<K>
-
removeShort
- Specified by:
removeShortin interfaceit.unimi.dsi.fastutil.objects.Reference2ShortFunction<K>
-
clear
public void clear() -
put
Deprecated.Please use the corresponding type-specific method instead. -
get
Deprecated.Please use the corresponding type-specific method instead. -
getOrDefault
Deprecated.Please use the corresponding type-specific method instead. -
remove
Deprecated.Please use the corresponding type-specific method instead. -
hashCode
public int hashCode() -
equals
-
toString
-