public static class Int2ShortFunctions.SynchronizedFunction
extends java.lang.Object
implements it.unimi.dsi.fastutil.ints.Int2ShortFunction, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected it.unimi.dsi.fastutil.ints.Int2ShortFunction |
function |
protected java.lang.Object |
sync |
| Modifier | Constructor and Description |
|---|---|
protected |
SynchronizedFunction(it.unimi.dsi.fastutil.ints.Int2ShortFunction f) |
protected |
SynchronizedFunction(it.unimi.dsi.fastutil.ints.Int2ShortFunction f,
java.lang.Object sync) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Short |
apply(java.lang.Integer key)
Deprecated.
Please use the corresponding type-specific method instead.
|
int |
applyAsInt(int operand) |
void |
clear() |
boolean |
containsKey(int k) |
boolean |
containsKey(java.lang.Object k)
Deprecated.
|
short |
defaultReturnValue() |
void |
defaultReturnValue(short defRetValue) |
boolean |
equals(java.lang.Object o) |
short |
get(int k) |
java.lang.Short |
get(java.lang.Object k)
Deprecated.
Please use the corresponding type-specific method instead.
|
short |
getOrDefault(int k,
short defaultValue) |
java.lang.Short |
getOrDefault(java.lang.Object k,
java.lang.Short defaultValue)
Deprecated.
Please use the corresponding type-specific method instead.
|
int |
hashCode() |
java.lang.Short |
put(java.lang.Integer k,
java.lang.Short v)
Deprecated.
Please use the corresponding type-specific method instead.
|
short |
put(int k,
short v) |
short |
remove(int k) |
java.lang.Short |
remove(java.lang.Object k)
Deprecated.
Please use the corresponding type-specific method instead.
|
int |
size() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitandThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShortprotected final it.unimi.dsi.fastutil.ints.Int2ShortFunction function
protected final java.lang.Object sync
protected SynchronizedFunction(it.unimi.dsi.fastutil.ints.Int2ShortFunction f,
java.lang.Object sync)
protected SynchronizedFunction(it.unimi.dsi.fastutil.ints.Int2ShortFunction f)
public int applyAsInt(int operand)
applyAsInt in interface it.unimi.dsi.fastutil.ints.Int2ShortFunctionapplyAsInt in interface java.util.function.IntUnaryOperator@Deprecated public java.lang.Short apply(java.lang.Integer key)
apply in interface java.util.function.Function<java.lang.Integer,java.lang.Short>public int size()
public short defaultReturnValue()
defaultReturnValue in interface it.unimi.dsi.fastutil.ints.Int2ShortFunctionpublic void defaultReturnValue(short defRetValue)
defaultReturnValue in interface it.unimi.dsi.fastutil.ints.Int2ShortFunctionpublic boolean containsKey(int k)
containsKey in interface it.unimi.dsi.fastutil.ints.Int2ShortFunction@Deprecated public boolean containsKey(java.lang.Object k)
containsKey in interface it.unimi.dsi.fastutil.ints.Int2ShortFunctionpublic short put(int k,
short v)
put in interface it.unimi.dsi.fastutil.ints.Int2ShortFunctionpublic short get(int k)
get in interface it.unimi.dsi.fastutil.ints.Int2ShortFunctionpublic short getOrDefault(int k,
short defaultValue)
getOrDefault in interface it.unimi.dsi.fastutil.ints.Int2ShortFunctionpublic short remove(int k)
remove in interface it.unimi.dsi.fastutil.ints.Int2ShortFunctionpublic void clear()
@Deprecated
public java.lang.Short put(java.lang.Integer k,
java.lang.Short v)
put in interface it.unimi.dsi.fastutil.ints.Int2ShortFunction@Deprecated public java.lang.Short get(java.lang.Object k)
get in interface it.unimi.dsi.fastutil.ints.Int2ShortFunction@Deprecated
public java.lang.Short getOrDefault(java.lang.Object k,
java.lang.Short defaultValue)
getOrDefault in interface it.unimi.dsi.fastutil.ints.Int2ShortFunction@Deprecated public java.lang.Short remove(java.lang.Object k)
remove in interface it.unimi.dsi.fastutil.ints.Int2ShortFunctionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object