Package it.unimi.dsi.fastutil.longs
Class Long2LongFunctions.SynchronizedFunction
java.lang.Object
it.unimi.dsi.fastutil.longs.Long2LongFunctions.SynchronizedFunction
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<Long,,Long> it.unimi.dsi.fastutil.longs.Long2LongFunction,Serializable,Function<Long,,Long> LongUnaryOperator
- Direct Known Subclasses:
Long2LongMaps.SynchronizedMap
- Enclosing class:
Long2LongFunctions
public static class Long2LongFunctions.SynchronizedFunction
extends Object
implements it.unimi.dsi.fastutil.longs.Long2LongFunction, Serializable
A synchronized wrapper class for functions.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSynchronizedFunction(it.unimi.dsi.fastutil.longs.Long2LongFunction f) protectedSynchronizedFunction(it.unimi.dsi.fastutil.longs.Long2LongFunction f, Object sync) -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Please use the corresponding type-specific method instead.longapplyAsLong(long operand) voidclear()booleancontainsKey(long k) booleanDeprecated.longvoiddefaultReturnValue(long defRetValue) booleanlongget(long k) Deprecated.Please use the corresponding type-specific method instead.longgetOrDefault(long k, long defaultValue) getOrDefault(Object k, Long defaultValue) Deprecated.Please use the corresponding type-specific method instead.inthashCode()longput(long k, long v) Deprecated.Please use the corresponding type-specific method instead.longremove(long k) Deprecated.Please use the corresponding type-specific method instead.intsize()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.longs.Long2LongFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShortMethods inherited from interface java.util.function.LongUnaryOperator
andThen, compose
-
Field Details
-
function
protected final it.unimi.dsi.fastutil.longs.Long2LongFunction function -
sync
-
-
Constructor Details
-
SynchronizedFunction
-
SynchronizedFunction
protected SynchronizedFunction(it.unimi.dsi.fastutil.longs.Long2LongFunction f)
-
-
Method Details
-
applyAsLong
public long applyAsLong(long operand) - Specified by:
applyAsLongin interfaceit.unimi.dsi.fastutil.longs.Long2LongFunction- Specified by:
applyAsLongin interfaceLongUnaryOperator
-
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.longs.Long2LongFunction
-
defaultReturnValue
public void defaultReturnValue(long defRetValue) - Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.longs.Long2LongFunction
-
containsKey
public boolean containsKey(long k) - Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.longs.Long2LongFunction
-
containsKey
Deprecated. -
put
public long put(long k, long v) - Specified by:
putin interfaceit.unimi.dsi.fastutil.longs.Long2LongFunction
-
get
public long get(long k) - Specified by:
getin interfaceit.unimi.dsi.fastutil.longs.Long2LongFunction
-
getOrDefault
public long getOrDefault(long k, long defaultValue) - Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.longs.Long2LongFunction
-
remove
public long remove(long k) - Specified by:
removein interfaceit.unimi.dsi.fastutil.longs.Long2LongFunction
-
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
-