Package it.unimi.dsi.fastutil.doubles
Class Double2LongFunctions.EmptyFunction
java.lang.Object
it.unimi.dsi.fastutil.doubles.AbstractDouble2LongFunction
it.unimi.dsi.fastutil.doubles.Double2LongFunctions.EmptyFunction
- All Implemented Interfaces:
it.unimi.dsi.fastutil.doubles.Double2LongFunction,it.unimi.dsi.fastutil.Function<Double,,Long> Serializable,Cloneable,DoubleToLongFunction,Function<Double,Long>
- Direct Known Subclasses:
Double2LongMaps.EmptyMap
- Enclosing class:
Double2LongFunctions
public static class Double2LongFunctions.EmptyFunction
extends AbstractDouble2LongFunction
implements Serializable, Cloneable
An immutable class representing an empty type-specific function.
This class may be useful to implement your own in case you subclass a type-specific function.
- See Also:
-
Field Summary
Fields inherited from class it.unimi.dsi.fastutil.doubles.AbstractDouble2LongFunction
defRetValue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()clone()booleancontainsKey(double k) longvoiddefaultReturnValue(long defRetValue) booleanlongget(double k) longgetOrDefault(double k, long defaultValue) inthashCode()intsize()toString()Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.doubles.Double2LongFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsLong, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, containsKey, get, getOrDefault, put, put, remove, removeMethods inherited from interface it.unimi.dsi.fastutil.Function
apply
-
Constructor Details
-
EmptyFunction
protected EmptyFunction()
-
-
Method Details
-
get
public long get(double k) - Specified by:
getin interfaceit.unimi.dsi.fastutil.doubles.Double2LongFunction
-
getOrDefault
public long getOrDefault(double k, long defaultValue) - Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.doubles.Double2LongFunction
-
containsKey
public boolean containsKey(double k) - Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.doubles.Double2LongFunction
-
defaultReturnValue
public long defaultReturnValue()- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.doubles.Double2LongFunction- Overrides:
defaultReturnValuein classAbstractDouble2LongFunction
-
defaultReturnValue
public void defaultReturnValue(long defRetValue) - Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.doubles.Double2LongFunction- Overrides:
defaultReturnValuein classAbstractDouble2LongFunction
-
size
public int size() -
clear
public void clear() -
clone
-
hashCode
public int hashCode() -
equals
-
toString
-