public static class Int2LongFunctions.SynchronizedFunction
extends java.lang.Object
implements it.unimi.dsi.fastutil.ints.Int2LongFunction, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected it.unimi.dsi.fastutil.ints.Int2LongFunction |
function |
protected java.lang.Object |
sync |
| Modifier | Constructor and Description |
|---|---|
protected |
SynchronizedFunction(it.unimi.dsi.fastutil.ints.Int2LongFunction f) |
protected |
SynchronizedFunction(it.unimi.dsi.fastutil.ints.Int2LongFunction f,
java.lang.Object sync) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
apply(java.lang.Integer key)
Deprecated.
Please use the corresponding type-specific method instead.
|
long |
applyAsLong(int operand) |
void |
clear() |
boolean |
containsKey(int k) |
boolean |
containsKey(java.lang.Object k)
Deprecated.
|
long |
defaultReturnValue() |
void |
defaultReturnValue(long defRetValue) |
boolean |
equals(java.lang.Object o) |
long |
get(int k) |
java.lang.Long |
get(java.lang.Object k)
Deprecated.
Please use the corresponding type-specific method instead.
|
long |
getOrDefault(int k,
long defaultValue) |
java.lang.Long |
getOrDefault(java.lang.Object k,
java.lang.Long defaultValue)
Deprecated.
Please use the corresponding type-specific method instead.
|
int |
hashCode() |
java.lang.Long |
put(java.lang.Integer k,
java.lang.Long v)
Deprecated.
Please use the corresponding type-specific method instead.
|
long |
put(int k,
long v) |
long |
remove(int k) |
java.lang.Long |
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.Int2LongFunction function
protected final java.lang.Object sync
protected SynchronizedFunction(it.unimi.dsi.fastutil.ints.Int2LongFunction f,
java.lang.Object sync)
protected SynchronizedFunction(it.unimi.dsi.fastutil.ints.Int2LongFunction f)
public long applyAsLong(int operand)
applyAsLong in interface it.unimi.dsi.fastutil.ints.Int2LongFunctionapplyAsLong in interface java.util.function.IntToLongFunction@Deprecated public java.lang.Long apply(java.lang.Integer key)
apply in interface java.util.function.Function<java.lang.Integer,java.lang.Long>public int size()
public long defaultReturnValue()
defaultReturnValue in interface it.unimi.dsi.fastutil.ints.Int2LongFunctionpublic void defaultReturnValue(long defRetValue)
defaultReturnValue in interface it.unimi.dsi.fastutil.ints.Int2LongFunctionpublic boolean containsKey(int k)
containsKey in interface it.unimi.dsi.fastutil.ints.Int2LongFunction@Deprecated public boolean containsKey(java.lang.Object k)
containsKey in interface it.unimi.dsi.fastutil.ints.Int2LongFunctionpublic long put(int k,
long v)
put in interface it.unimi.dsi.fastutil.ints.Int2LongFunctionpublic long get(int k)
get in interface it.unimi.dsi.fastutil.ints.Int2LongFunctionpublic long getOrDefault(int k,
long defaultValue)
getOrDefault in interface it.unimi.dsi.fastutil.ints.Int2LongFunctionpublic long remove(int k)
remove in interface it.unimi.dsi.fastutil.ints.Int2LongFunctionpublic void clear()
@Deprecated
public java.lang.Long put(java.lang.Integer k,
java.lang.Long v)
put in interface it.unimi.dsi.fastutil.ints.Int2LongFunction@Deprecated public java.lang.Long get(java.lang.Object k)
get in interface it.unimi.dsi.fastutil.ints.Int2LongFunction@Deprecated
public java.lang.Long getOrDefault(java.lang.Object k,
java.lang.Long defaultValue)
getOrDefault in interface it.unimi.dsi.fastutil.ints.Int2LongFunction@Deprecated public java.lang.Long remove(java.lang.Object k)
remove in interface it.unimi.dsi.fastutil.ints.Int2LongFunctionpublic 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