Package it.unimi.dsi.fastutil.objects
Class Reference2LongFunctions.SynchronizedFunction<K>
java.lang.Object
it.unimi.dsi.fastutil.objects.Reference2LongFunctions.SynchronizedFunction<K>
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,,Long> it.unimi.dsi.fastutil.objects.Reference2LongFunction<K>,Serializable,Function<K,,Long> ToLongFunction<K>
- Direct Known Subclasses:
Reference2LongMaps.SynchronizedMap
- Enclosing class:
Reference2LongFunctions
public static class Reference2LongFunctions.SynchronizedFunction<K>
extends Object
implements it.unimi.dsi.fastutil.objects.Reference2LongFunction<K>, Serializable
A synchronized wrapper class for functions.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSynchronizedFunction(it.unimi.dsi.fastutil.objects.Reference2LongFunction<K> f) protectedSynchronizedFunction(it.unimi.dsi.fastutil.objects.Reference2LongFunction<K> f, Object sync) -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Please use the corresponding type-specific method instead.longapplyAsLong(K operand) voidclear()booleanlongvoiddefaultReturnValue(long defRetValue) booleanDeprecated.Please use the corresponding type-specific method instead.longlonggetOrDefault(Object k, long defaultValue) getOrDefault(Object k, Long defaultValue) Deprecated.Please use the corresponding type-specific method instead.inthashCode()longDeprecated.Please use the corresponding type-specific method instead.Deprecated.Please use the corresponding type-specific method instead.longremoveLong(Object k) 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.Reference2LongFunction
andThen, 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
-
applyAsLong
- Specified by:
applyAsLongin interfaceit.unimi.dsi.fastutil.objects.Reference2LongFunction<K>- Specified by:
applyAsLongin interfaceToLongFunction<K>
-
apply
Deprecated.Please use the corresponding type-specific method instead. -
size
public int size() -
defaultReturnValue
public long defaultReturnValue()- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.objects.Reference2LongFunction<K>
-
defaultReturnValue
public void defaultReturnValue(long defRetValue) - Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.objects.Reference2LongFunction<K>
-
containsKey
-
put
- Specified by:
putin interfaceit.unimi.dsi.fastutil.objects.Reference2LongFunction<K>
-
getLong
- Specified by:
getLongin interfaceit.unimi.dsi.fastutil.objects.Reference2LongFunction<K>
-
getOrDefault
- Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.objects.Reference2LongFunction<K>
-
removeLong
- Specified by:
removeLongin interfaceit.unimi.dsi.fastutil.objects.Reference2LongFunction<K>
-
clear
public void clear() -
put
Deprecated.Please use the corresponding type-specific method instead. -
get
Deprecated.Please use the corresponding type-specific method instead. -
getOrDefault
Deprecated.Please use the corresponding type-specific method instead. -
remove
Deprecated.Please use the corresponding type-specific method instead. -
hashCode
public int hashCode() -
equals
-
toString
-