Package it.unimi.dsi.fastutil.doubles
Class Double2BooleanFunctions.SynchronizedFunction
java.lang.Object
it.unimi.dsi.fastutil.doubles.Double2BooleanFunctions.SynchronizedFunction
- All Implemented Interfaces:
it.unimi.dsi.fastutil.doubles.Double2BooleanFunction,it.unimi.dsi.fastutil.Function<Double,,Boolean> Serializable,DoublePredicate,Function<Double,Boolean>
- Direct Known Subclasses:
Double2BooleanMaps.SynchronizedMap
- Enclosing class:
Double2BooleanFunctions
public static class Double2BooleanFunctions.SynchronizedFunction
extends Object
implements it.unimi.dsi.fastutil.doubles.Double2BooleanFunction, Serializable
A synchronized wrapper class for functions.
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedSynchronizedFunction(it.unimi.dsi.fastutil.doubles.Double2BooleanFunction f) protectedSynchronizedFunction(it.unimi.dsi.fastutil.doubles.Double2BooleanFunction f, Object sync) -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Please use the corresponding type-specific method instead.voidclear()booleancontainsKey(double k) booleanDeprecated.booleanvoiddefaultReturnValue(boolean defRetValue) booleanbooleanget(double k) Deprecated.Please use the corresponding type-specific method instead.booleangetOrDefault(double k, boolean defaultValue) getOrDefault(Object k, Boolean defaultValue) Deprecated.Please use the corresponding type-specific method instead.inthashCode()booleanput(double k, boolean v) Deprecated.Please use the corresponding type-specific method instead.booleanremove(double k) Deprecated.Please use the corresponding type-specific method instead.intsize()booleantest(double operand) toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.doubles.Double2BooleanFunction
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.DoublePredicate
and, negate, or
-
Field Details
-
function
protected final it.unimi.dsi.fastutil.doubles.Double2BooleanFunction function -
sync
-
-
Constructor Details
-
SynchronizedFunction
-
SynchronizedFunction
protected SynchronizedFunction(it.unimi.dsi.fastutil.doubles.Double2BooleanFunction f)
-
-
Method Details
-
test
public boolean test(double operand) - Specified by:
testin interfaceit.unimi.dsi.fastutil.doubles.Double2BooleanFunction- Specified by:
testin interfaceDoublePredicate
-
apply
Deprecated.Please use the corresponding type-specific method instead. -
size
public int size() -
defaultReturnValue
public boolean defaultReturnValue()- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.doubles.Double2BooleanFunction
-
defaultReturnValue
public void defaultReturnValue(boolean defRetValue) - Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.doubles.Double2BooleanFunction
-
containsKey
public boolean containsKey(double k) - Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.doubles.Double2BooleanFunction
-
containsKey
Deprecated. -
put
public boolean put(double k, boolean v) - Specified by:
putin interfaceit.unimi.dsi.fastutil.doubles.Double2BooleanFunction
-
get
public boolean get(double k) - Specified by:
getin interfaceit.unimi.dsi.fastutil.doubles.Double2BooleanFunction
-
getOrDefault
public boolean getOrDefault(double k, boolean defaultValue) - Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.doubles.Double2BooleanFunction
-
remove
public boolean remove(double k) - Specified by:
removein interfaceit.unimi.dsi.fastutil.doubles.Double2BooleanFunction
-
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
-