Package it.unimi.dsi.fastutil.objects
Class Reference2ReferenceFunctions.EmptyFunction<K,V>
java.lang.Object
it.unimi.dsi.fastutil.objects.AbstractReference2ReferenceFunction<K,V>
it.unimi.dsi.fastutil.objects.Reference2ReferenceFunctions.EmptyFunction<K,V>
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,,V> it.unimi.dsi.fastutil.objects.Reference2ReferenceFunction<K,,V> Serializable,Cloneable,Function<K,V>
- Direct Known Subclasses:
Reference2ReferenceMaps.EmptyMap
- Enclosing class:
Reference2ReferenceFunctions
public static class Reference2ReferenceFunctions.EmptyFunction<K,V>
extends AbstractReference2ReferenceFunction<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.AbstractReference2ReferenceFunction
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.Reference2ReferenceFunction
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.Reference2ReferenceFunction<K,V> - Overrides:
defaultReturnValuein classAbstractReference2ReferenceFunction<K,V>
-
defaultReturnValue
- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.objects.Reference2ReferenceFunction<K,V> - Overrides:
defaultReturnValuein classAbstractReference2ReferenceFunction<K,V>
-
size
public int size() -
clear
public void clear() -
clone
-
hashCode
public int hashCode() -
equals
-
toString
-