public static class Reference2ReferenceFunctions.SynchronizedFunction<K,V>
extends java.lang.Object
implements it.unimi.dsi.fastutil.objects.Reference2ReferenceFunction<K,V>, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
protected it.unimi.dsi.fastutil.objects.Reference2ReferenceFunction<K,V> |
function |
protected java.lang.Object |
sync |
| Modifier | Constructor and Description |
|---|---|
protected |
SynchronizedFunction(it.unimi.dsi.fastutil.objects.Reference2ReferenceFunction<K,V> f) |
protected |
SynchronizedFunction(it.unimi.dsi.fastutil.objects.Reference2ReferenceFunction<K,V> f,
java.lang.Object sync) |
| Modifier and Type | Method and Description |
|---|---|
V |
apply(K key) |
void |
clear() |
boolean |
containsKey(java.lang.Object k) |
V |
defaultReturnValue() |
void |
defaultReturnValue(V defRetValue) |
boolean |
equals(java.lang.Object o) |
V |
get(java.lang.Object k) |
V |
getOrDefault(java.lang.Object k,
V defaultValue) |
int |
hashCode() |
V |
put(K k,
V v) |
V |
remove(java.lang.Object k) |
int |
size() |
java.lang.String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitandThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShortprotected SynchronizedFunction(it.unimi.dsi.fastutil.objects.Reference2ReferenceFunction<K,V> f, java.lang.Object sync)
public int size()
public V defaultReturnValue()
public void defaultReturnValue(V defRetValue)
public boolean containsKey(java.lang.Object k)
public V get(java.lang.Object k)
public V remove(java.lang.Object k)
public void clear()
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