public static class Int2ShortFunctions.UnmodifiableFunction extends AbstractInt2ShortFunction implements java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected it.unimi.dsi.fastutil.ints.Int2ShortFunction |
function |
defRetValue| Modifier | Constructor and Description |
|---|---|
protected |
UnmodifiableFunction(it.unimi.dsi.fastutil.ints.Int2ShortFunction f) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(int k) |
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, applyAsInt, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, containsKeyprotected UnmodifiableFunction(it.unimi.dsi.fastutil.ints.Int2ShortFunction f)
public int size()
public short defaultReturnValue()
defaultReturnValue in interface it.unimi.dsi.fastutil.ints.Int2ShortFunctiondefaultReturnValue in class AbstractInt2ShortFunctionpublic void defaultReturnValue(short defRetValue)
defaultReturnValue in interface it.unimi.dsi.fastutil.ints.Int2ShortFunctiondefaultReturnValue in class AbstractInt2ShortFunctionpublic boolean containsKey(int 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