public static class Reference2LongFunctions.SynchronizedFunction<K>
extends java.lang.Object
implements it.unimi.dsi.fastutil.objects.Reference2LongFunction<K>, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected it.unimi.dsi.fastutil.objects.Reference2LongFunction<K> |
function |
protected java.lang.Object |
sync |
| Modifier | Constructor and Description |
|---|---|
protected |
SynchronizedFunction(it.unimi.dsi.fastutil.objects.Reference2LongFunction<K> f) |
protected |
SynchronizedFunction(it.unimi.dsi.fastutil.objects.Reference2LongFunction<K> f,
java.lang.Object sync) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
apply(K key)
Deprecated.
Please use the corresponding type-specific method instead.
|
long |
applyAsLong(K operand) |
void |
clear() |
boolean |
containsKey(java.lang.Object k) |
long |
defaultReturnValue() |
void |
defaultReturnValue(long defRetValue) |
boolean |
equals(java.lang.Object o) |
java.lang.Long |
get(java.lang.Object k)
Deprecated.
Please use the corresponding type-specific method instead.
|
long |
getLong(java.lang.Object k) |
long |
getOrDefault(java.lang.Object 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() |
long |
put(K k,
long v) |
java.lang.Long |
put(K k,
java.lang.Long v)
Deprecated.
Please use the corresponding type-specific method instead.
|
java.lang.Long |
remove(java.lang.Object k)
Deprecated.
Please use the corresponding type-specific method instead.
|
long |
removeLong(java.lang.Object k) |
int |
size() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitandThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShortprotected final it.unimi.dsi.fastutil.objects.Reference2LongFunction<K> function
protected final java.lang.Object sync
protected SynchronizedFunction(it.unimi.dsi.fastutil.objects.Reference2LongFunction<K> f, java.lang.Object sync)
protected SynchronizedFunction(it.unimi.dsi.fastutil.objects.Reference2LongFunction<K> f)
public long applyAsLong(K operand)
@Deprecated public java.lang.Long apply(K key)
apply in interface java.util.function.Function<K,java.lang.Long>public int size()
public long defaultReturnValue()
defaultReturnValue in interface it.unimi.dsi.fastutil.objects.Reference2LongFunction<K>public void defaultReturnValue(long defRetValue)
defaultReturnValue in interface it.unimi.dsi.fastutil.objects.Reference2LongFunction<K>public boolean containsKey(java.lang.Object k)
public long put(K k, long v)
put in interface it.unimi.dsi.fastutil.objects.Reference2LongFunction<K>public long getLong(java.lang.Object k)
getLong in interface it.unimi.dsi.fastutil.objects.Reference2LongFunction<K>public long getOrDefault(java.lang.Object k,
long defaultValue)
getOrDefault in interface it.unimi.dsi.fastutil.objects.Reference2LongFunction<K>public long removeLong(java.lang.Object k)
removeLong in interface it.unimi.dsi.fastutil.objects.Reference2LongFunction<K>public void clear()
@Deprecated public java.lang.Long put(K k, java.lang.Long v)
put in interface it.unimi.dsi.fastutil.objects.Reference2LongFunction<K>@Deprecated public java.lang.Long get(java.lang.Object k)
get in interface it.unimi.dsi.fastutil.objects.Reference2LongFunction<K>@Deprecated
public java.lang.Long getOrDefault(java.lang.Object k,
java.lang.Long defaultValue)
getOrDefault in interface it.unimi.dsi.fastutil.objects.Reference2LongFunction<K>@Deprecated public java.lang.Long remove(java.lang.Object k)
remove in interface it.unimi.dsi.fastutil.objects.Reference2LongFunction<K>public 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