Package it.unimi.dsi.fastutil.objects
Class Object2IntFunctions.UnmodifiableFunction<K>
java.lang.Object
it.unimi.dsi.fastutil.objects.AbstractObject2IntFunction<K>
it.unimi.dsi.fastutil.objects.Object2IntFunctions.UnmodifiableFunction<K>
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,,Integer> it.unimi.dsi.fastutil.objects.Object2IntFunction<K>,Serializable,Function<K,,Integer> ToIntFunction<K>
- Direct Known Subclasses:
Object2IntMaps.UnmodifiableMap
- Enclosing class:
Object2IntFunctions
public static class Object2IntFunctions.UnmodifiableFunction<K>
extends AbstractObject2IntFunction<K>
implements Serializable
An unmodifiable wrapper class for functions.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.objects.Object2IntFunction<? extends K> Fields inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2IntFunction
defRetValue -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUnmodifiableFunction(it.unimi.dsi.fastutil.objects.Object2IntFunction<? extends K> f) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleanintvoiddefaultReturnValue(int defRetValue) booleanDeprecated.Please use the corresponding type-specific method instead.intintgetOrDefault(Object k, int defaultValue) getOrDefault(Object k, Integer defaultValue) Deprecated.Please use the corresponding type-specific method instead.inthashCode()intDeprecated.Please use the corresponding type-specific method instead.Deprecated.Please use the corresponding type-specific method instead.intintsize()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.Object2IntFunction
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 int defaultReturnValue()- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.objects.Object2IntFunction<K>- Overrides:
defaultReturnValuein classAbstractObject2IntFunction<K>
-
defaultReturnValue
public void defaultReturnValue(int defRetValue) - Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.objects.Object2IntFunction<K>- Overrides:
defaultReturnValuein classAbstractObject2IntFunction<K>
-
containsKey
-
put
- Specified by:
putin interfaceit.unimi.dsi.fastutil.objects.Object2IntFunction<K>
-
getInt
- Specified by:
getIntin interfaceit.unimi.dsi.fastutil.objects.Object2IntFunction<K>
-
getOrDefault
- Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.objects.Object2IntFunction<K>
-
removeInt
- Specified by:
removeIntin interfaceit.unimi.dsi.fastutil.objects.Object2IntFunction<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
-