Package it.unimi.dsi.fastutil.objects
Class Reference2ObjectFunctions.EmptyFunction<K,V>
java.lang.Object
it.unimi.dsi.fastutil.objects.AbstractReference2ObjectFunction<K,V>
it.unimi.dsi.fastutil.objects.Reference2ObjectFunctions.EmptyFunction<K,V>
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,,V> it.unimi.dsi.fastutil.objects.Reference2ObjectFunction<K,,V> Serializable,Cloneable,Function<K,V>
- Direct Known Subclasses:
Reference2ObjectMaps.EmptyMap
- Enclosing class:
Reference2ObjectFunctions
public static class Reference2ObjectFunctions.EmptyFunction<K,V>
extends AbstractReference2ObjectFunction<K,V>
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.objects.AbstractReference2ObjectFunction
defRetValue -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.Function
applyMethods inherited from interface it.unimi.dsi.fastutil.objects.Reference2ObjectFunction
andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, put, remove
-
Constructor Details
-
EmptyFunction
protected EmptyFunction()
-
-
Method Details
-
get
-
getOrDefault
-
containsKey
-
defaultReturnValue
- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.objects.Reference2ObjectFunction<K,V> - Overrides:
defaultReturnValuein classAbstractReference2ObjectFunction<K,V>
-
defaultReturnValue
- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.objects.Reference2ObjectFunction<K,V> - Overrides:
defaultReturnValuein classAbstractReference2ObjectFunction<K,V>
-
size
public int size() -
clear
public void clear() -
clone
-
hashCode
public int hashCode() -
equals
-
toString
-