Package it.unimi.dsi.fastutil.bytes
Class Byte2FloatFunctions.EmptyFunction
java.lang.Object
it.unimi.dsi.fastutil.bytes.AbstractByte2FloatFunction
it.unimi.dsi.fastutil.bytes.Byte2FloatFunctions.EmptyFunction
- All Implemented Interfaces:
it.unimi.dsi.fastutil.bytes.Byte2FloatFunction,it.unimi.dsi.fastutil.Function<Byte,,Float> Serializable,Cloneable,Function<Byte,,Float> IntToDoubleFunction
- Direct Known Subclasses:
Byte2FloatMaps.EmptyMap
- Enclosing class:
Byte2FloatFunctions
public static class Byte2FloatFunctions.EmptyFunction
extends AbstractByte2FloatFunction
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.bytes.AbstractByte2FloatFunction
defRetValue -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()clone()booleancontainsKey(byte k) floatvoiddefaultReturnValue(float defRetValue) booleanfloatget(byte k) floatgetOrDefault(byte k, float 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.bytes.Byte2FloatFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsDouble, 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 float get(byte k) - Specified by:
getin interfaceit.unimi.dsi.fastutil.bytes.Byte2FloatFunction
-
getOrDefault
public float getOrDefault(byte k, float defaultValue) - Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.bytes.Byte2FloatFunction
-
containsKey
public boolean containsKey(byte k) - Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.bytes.Byte2FloatFunction
-
defaultReturnValue
public float defaultReturnValue()- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.bytes.Byte2FloatFunction- Overrides:
defaultReturnValuein classAbstractByte2FloatFunction
-
defaultReturnValue
public void defaultReturnValue(float defRetValue) - Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.bytes.Byte2FloatFunction- Overrides:
defaultReturnValuein classAbstractByte2FloatFunction
-
size
public int size() -
clear
public void clear() -
clone
-
hashCode
public int hashCode() -
equals
-
toString
-