Package it.unimi.dsi.fastutil.shorts
Class Short2IntFunctions.SynchronizedFunction
java.lang.Object
it.unimi.dsi.fastutil.shorts.Short2IntFunctions.SynchronizedFunction
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<Short,,Integer> it.unimi.dsi.fastutil.shorts.Short2IntFunction,Serializable,Function<Short,,Integer> IntUnaryOperator
- Direct Known Subclasses:
Short2IntMaps.SynchronizedMap
- Enclosing class:
Short2IntFunctions
public static class Short2IntFunctions.SynchronizedFunction
extends Object
implements it.unimi.dsi.fastutil.shorts.Short2IntFunction, Serializable
A synchronized wrapper class for functions.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSynchronizedFunction(it.unimi.dsi.fastutil.shorts.Short2IntFunction f) protectedSynchronizedFunction(it.unimi.dsi.fastutil.shorts.Short2IntFunction 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.intvoiddefaultReturnValue(int defRetValue) booleanintget(short k) Deprecated.Please use the corresponding type-specific method instead.intgetOrDefault(short k, int defaultValue) getOrDefault(Object k, Integer defaultValue) Deprecated.Please use the corresponding type-specific method instead.inthashCode()intput(short k, int v) Deprecated.Please use the corresponding type-specific method instead.intremove(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.Short2IntFunction
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.Short2IntFunction function -
sync
-
-
Constructor Details
-
SynchronizedFunction
-
SynchronizedFunction
protected SynchronizedFunction(it.unimi.dsi.fastutil.shorts.Short2IntFunction 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.Short2IntFunction
-
apply
Deprecated.Please use the corresponding type-specific method instead. -
size
public int size() -
defaultReturnValue
public int defaultReturnValue()- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.shorts.Short2IntFunction
-
defaultReturnValue
public void defaultReturnValue(int defRetValue) - Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.shorts.Short2IntFunction
-
containsKey
public boolean containsKey(short k) - Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.shorts.Short2IntFunction
-
containsKey
Deprecated. -
put
public int put(short k, int v) - Specified by:
putin interfaceit.unimi.dsi.fastutil.shorts.Short2IntFunction
-
get
public int get(short k) - Specified by:
getin interfaceit.unimi.dsi.fastutil.shorts.Short2IntFunction
-
getOrDefault
public int getOrDefault(short k, int defaultValue) - Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.shorts.Short2IntFunction
-
remove
public int remove(short k) - Specified by:
removein interfaceit.unimi.dsi.fastutil.shorts.Short2IntFunction
-
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
-