Package it.unimi.dsi.fastutil.doubles
Class Double2ByteFunctions.SynchronizedFunction
java.lang.Object
it.unimi.dsi.fastutil.doubles.Double2ByteFunctions.SynchronizedFunction
- All Implemented Interfaces:
it.unimi.dsi.fastutil.doubles.Double2ByteFunction,it.unimi.dsi.fastutil.Function<Double,,Byte> Serializable,DoubleToIntFunction,Function<Double,Byte>
- Direct Known Subclasses:
Double2ByteMaps.SynchronizedMap
- Enclosing class:
Double2ByteFunctions
public static class Double2ByteFunctions.SynchronizedFunction
extends Object
implements it.unimi.dsi.fastutil.doubles.Double2ByteFunction, Serializable
A synchronized wrapper class for functions.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSynchronizedFunction(it.unimi.dsi.fastutil.doubles.Double2ByteFunction f) protectedSynchronizedFunction(it.unimi.dsi.fastutil.doubles.Double2ByteFunction f, Object sync) -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Please use the corresponding type-specific method instead.intapplyAsInt(double operand) voidclear()booleancontainsKey(double k) booleanDeprecated.bytevoiddefaultReturnValue(byte defRetValue) booleanbyteget(double k) Deprecated.Please use the corresponding type-specific method instead.bytegetOrDefault(double k, byte defaultValue) getOrDefault(Object k, Byte defaultValue) Deprecated.Please use the corresponding type-specific method instead.inthashCode()byteput(double k, byte v) Deprecated.Please use the corresponding type-specific method instead.byteremove(double 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.doubles.Double2ByteFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort
-
Field Details
-
function
protected final it.unimi.dsi.fastutil.doubles.Double2ByteFunction function -
sync
-
-
Constructor Details
-
SynchronizedFunction
-
SynchronizedFunction
protected SynchronizedFunction(it.unimi.dsi.fastutil.doubles.Double2ByteFunction f)
-
-
Method Details
-
applyAsInt
public int applyAsInt(double operand) - Specified by:
applyAsIntin interfaceit.unimi.dsi.fastutil.doubles.Double2ByteFunction- Specified by:
applyAsIntin interfaceDoubleToIntFunction
-
apply
Deprecated.Please use the corresponding type-specific method instead. -
size
public int size() -
defaultReturnValue
public byte defaultReturnValue()- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.doubles.Double2ByteFunction
-
defaultReturnValue
public void defaultReturnValue(byte defRetValue) - Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.doubles.Double2ByteFunction
-
containsKey
public boolean containsKey(double k) - Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.doubles.Double2ByteFunction
-
containsKey
Deprecated. -
put
public byte put(double k, byte v) - Specified by:
putin interfaceit.unimi.dsi.fastutil.doubles.Double2ByteFunction
-
get
public byte get(double k) - Specified by:
getin interfaceit.unimi.dsi.fastutil.doubles.Double2ByteFunction
-
getOrDefault
public byte getOrDefault(double k, byte defaultValue) - Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.doubles.Double2ByteFunction
-
remove
public byte remove(double k) - Specified by:
removein interfaceit.unimi.dsi.fastutil.doubles.Double2ByteFunction
-
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
-