Package it.unimi.dsi.fastutil.shorts
Class Short2ShortFunctions.SynchronizedFunction
java.lang.Object
it.unimi.dsi.fastutil.shorts.Short2ShortFunctions.SynchronizedFunction
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<Short,,Short> it.unimi.dsi.fastutil.shorts.Short2ShortFunction,Serializable,Function<Short,,Short> IntUnaryOperator
- Direct Known Subclasses:
Short2ShortMaps.SynchronizedMap
- Enclosing class:
Short2ShortFunctions
public static class Short2ShortFunctions.SynchronizedFunction
extends Object
implements it.unimi.dsi.fastutil.shorts.Short2ShortFunction, Serializable
A synchronized wrapper class for functions.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSynchronizedFunction(it.unimi.dsi.fastutil.shorts.Short2ShortFunction f) protectedSynchronizedFunction(it.unimi.dsi.fastutil.shorts.Short2ShortFunction f, Object sync) -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Please use the corresponding type-specific method instead.intapplyAsInt(int operand) Deprecated.Please use the corresponding type-specific method instead.voidclear()booleancontainsKey(short k) booleanDeprecated.shortvoiddefaultReturnValue(short defRetValue) booleanshortget(short k) Deprecated.Please use the corresponding type-specific method instead.shortgetOrDefault(short k, short defaultValue) getOrDefault(Object k, Short defaultValue) Deprecated.Please use the corresponding type-specific method instead.inthashCode()shortput(short k, short v) Deprecated.Please use the corresponding type-specific method instead.shortremove(short k) Deprecated.Please use the corresponding type-specific method instead.intsize()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.function.IntUnaryOperator
andThen, composeMethods inherited from interface it.unimi.dsi.fastutil.shorts.Short2ShortFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort
-
Field Details
-
function
protected final it.unimi.dsi.fastutil.shorts.Short2ShortFunction function -
sync
-
-
Constructor Details
-
SynchronizedFunction
-
SynchronizedFunction
protected SynchronizedFunction(it.unimi.dsi.fastutil.shorts.Short2ShortFunction f)
-
-
Method Details
-
applyAsInt
Deprecated.Please use the corresponding type-specific method instead.- Specified by:
applyAsIntin interfaceIntUnaryOperator- Specified by:
applyAsIntin interfaceit.unimi.dsi.fastutil.shorts.Short2ShortFunction
-
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.shorts.Short2ShortFunction
-
defaultReturnValue
public void defaultReturnValue(short defRetValue) - Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.shorts.Short2ShortFunction
-
containsKey
public boolean containsKey(short k) - Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.shorts.Short2ShortFunction
-
containsKey
Deprecated. -
put
public short put(short k, short v) - Specified by:
putin interfaceit.unimi.dsi.fastutil.shorts.Short2ShortFunction
-
get
public short get(short k) - Specified by:
getin interfaceit.unimi.dsi.fastutil.shorts.Short2ShortFunction
-
getOrDefault
public short getOrDefault(short k, short defaultValue) - Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.shorts.Short2ShortFunction
-
remove
public short remove(short k) - Specified by:
removein interfaceit.unimi.dsi.fastutil.shorts.Short2ShortFunction
-
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
-