Package it.unimi.dsi.fastutil.objects
Class Reference2ObjectFunctions.SynchronizedFunction<K,V>
java.lang.Object
it.unimi.dsi.fastutil.objects.Reference2ObjectFunctions.SynchronizedFunction<K,V>
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,,V> it.unimi.dsi.fastutil.objects.Reference2ObjectFunction<K,,V> Serializable,Function<K,V>
- Direct Known Subclasses:
Reference2ObjectMaps.SynchronizedMap
- Enclosing class:
Reference2ObjectFunctions
public static class Reference2ObjectFunctions.SynchronizedFunction<K,V>
extends Object
implements it.unimi.dsi.fastutil.objects.Reference2ObjectFunction<K,V>, Serializable
A synchronized wrapper class for functions.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSynchronizedFunction(it.unimi.dsi.fastutil.objects.Reference2ObjectFunction<K, V> f) protectedSynchronizedFunction(it.unimi.dsi.fastutil.objects.Reference2ObjectFunction<K, V> f, Object sync) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleanvoiddefaultReturnValue(V defRetValue) booleangetOrDefault(Object k, V defaultValue) inthashCode()intsize()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.objects.Reference2ObjectFunction
andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort
-
Field Details
-
function
-
sync
-
-
Constructor Details
-
SynchronizedFunction
-
SynchronizedFunction
-
-
Method Details
-
apply
-
size
public int size() -
defaultReturnValue
-
defaultReturnValue
-
containsKey
-
put
-
get
-
getOrDefault
-
remove
-
clear
public void clear() -
hashCode
public int hashCode() -
equals
-
toString
-