Package it.unimi.dsi.fastutil.objects
Class Object2ReferenceFunctions.SynchronizedFunction<K,V>
java.lang.Object
it.unimi.dsi.fastutil.objects.Object2ReferenceFunctions.SynchronizedFunction<K,V>
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,V>,it.unimi.dsi.fastutil.objects.Object2ReferenceFunction<K,V>,java.io.Serializable,java.util.function.Function<K,V>
- Direct Known Subclasses:
Object2ReferenceMaps.SynchronizedMap
- Enclosing class:
- Object2ReferenceFunctions
public static class Object2ReferenceFunctions.SynchronizedFunction<K,V>
extends java.lang.Object
implements it.unimi.dsi.fastutil.objects.Object2ReferenceFunction<K,V>, java.io.Serializable
A synchronized wrapper class for functions.
- See Also:
- Serialized Form
-
Method Summary
Modifier and Type Method Description Vapply(K key)voidclear()booleancontainsKey(java.lang.Object k)VdefaultReturnValue()voiddefaultReturnValue(V defRetValue)booleanequals(java.lang.Object o)Vget(java.lang.Object k)VgetOrDefault(java.lang.Object k, V defaultValue)inthashCode()Vput(K k, V v)Vremove(java.lang.Object k)intsize()java.lang.StringtoString()Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.function.Function
andThen, composeMethods inherited from interface it.unimi.dsi.fastutil.objects.Object2ReferenceFunction
andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort
-
Method Details
-
apply
-
size
public int size() -
defaultReturnValue
-
defaultReturnValue
-
containsKey
public boolean containsKey(java.lang.Object k) -
put
-
get
-
getOrDefault
-
remove
-
clear
public void clear() -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-