Package it.unimi.dsi.fastutil.objects
Class Object2ShortFunctions.UnmodifiableFunction<K>
java.lang.Object
it.unimi.dsi.fastutil.objects.AbstractObject2ShortFunction<K>
it.unimi.dsi.fastutil.objects.Object2ShortFunctions.UnmodifiableFunction<K>
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,,Short> it.unimi.dsi.fastutil.objects.Object2ShortFunction<K>,Serializable,Function<K,,Short> ToIntFunction<K>
- Direct Known Subclasses:
Object2ShortMaps.UnmodifiableMap
- Enclosing class:
Object2ShortFunctions
public static class Object2ShortFunctions.UnmodifiableFunction<K>
extends AbstractObject2ShortFunction<K>
implements Serializable
An unmodifiable wrapper class for functions.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.objects.Object2ShortFunction<? extends K> Fields inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2ShortFunction
defRetValue -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUnmodifiableFunction(it.unimi.dsi.fastutil.objects.Object2ShortFunction<? extends K> f) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleanshortvoiddefaultReturnValue(short defRetValue) booleanDeprecated.Please use the corresponding type-specific method instead.shortgetOrDefault(Object k, short defaultValue) getOrDefault(Object k, Short defaultValue) Deprecated.Please use the corresponding type-specific method instead.shortinthashCode()shortDeprecated.Please use the corresponding type-specific method instead.Deprecated.Please use the corresponding type-specific method instead.shortintsize()toString()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.Function
applyMethods inherited from interface it.unimi.dsi.fastutil.objects.Object2ShortFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsInt, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort
-
Field Details
-
function
-
-
Constructor Details
-
UnmodifiableFunction
-
-
Method Details
-
size
public int size() -
defaultReturnValue
public short defaultReturnValue()- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.objects.Object2ShortFunction<K>- Overrides:
defaultReturnValuein classAbstractObject2ShortFunction<K>
-
defaultReturnValue
public void defaultReturnValue(short defRetValue) - Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.objects.Object2ShortFunction<K>- Overrides:
defaultReturnValuein classAbstractObject2ShortFunction<K>
-
containsKey
-
put
- Specified by:
putin interfaceit.unimi.dsi.fastutil.objects.Object2ShortFunction<K>
-
getShort
- Specified by:
getShortin interfaceit.unimi.dsi.fastutil.objects.Object2ShortFunction<K>
-
getOrDefault
- Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.objects.Object2ShortFunction<K>
-
removeShort
- Specified by:
removeShortin interfaceit.unimi.dsi.fastutil.objects.Object2ShortFunction<K>
-
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
-