Package it.unimi.dsi.fastutil.objects
Class Reference2IntFunctions.UnmodifiableFunction<K>
java.lang.Object
it.unimi.dsi.fastutil.objects.AbstractReference2IntFunction<K>
it.unimi.dsi.fastutil.objects.Reference2IntFunctions.UnmodifiableFunction<K>
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,java.lang.Integer>,it.unimi.dsi.fastutil.objects.Reference2IntFunction<K>,java.io.Serializable,java.util.function.Function<K,java.lang.Integer>,java.util.function.ToIntFunction<K>
- Direct Known Subclasses:
Reference2IntMaps.UnmodifiableMap
- Enclosing class:
- Reference2IntFunctions
public static class Reference2IntFunctions.UnmodifiableFunction<K> extends AbstractReference2IntFunction<K> implements java.io.Serializable
An unmodifiable wrapper class for functions.
- See Also:
- Serialized Form
-
Method Summary
Modifier and Type Method Description voidclear()booleancontainsKey(java.lang.Object k)intdefaultReturnValue()voiddefaultReturnValue(int defRetValue)booleanequals(java.lang.Object o)java.lang.Integerget(java.lang.Object k)Deprecated.Please use the corresponding type-specific method instead.intgetInt(java.lang.Object k)intgetOrDefault(java.lang.Object k, int defaultValue)java.lang.IntegergetOrDefault(java.lang.Object k, java.lang.Integer defaultValue)Deprecated.Please use the corresponding type-specific method instead.inthashCode()intput(K k, int v)java.lang.Integerput(K k, java.lang.Integer v)Deprecated.Please use the corresponding type-specific method instead.java.lang.Integerremove(java.lang.Object k)Deprecated.Please use the corresponding type-specific method instead.intremoveInt(java.lang.Object k)intsize()java.lang.StringtoString()Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.Function
applyMethods inherited from interface java.util.function.Function
composeMethods inherited from interface it.unimi.dsi.fastutil.objects.Reference2IntFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsInt, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceit.unimi.dsi.fastutil.Function<K,java.lang.Integer>
-
defaultReturnValue
public int defaultReturnValue()- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.objects.Reference2IntFunction<K>- Overrides:
defaultReturnValuein classAbstractReference2IntFunction<K>
-
defaultReturnValue
public void defaultReturnValue(int defRetValue)- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.objects.Reference2IntFunction<K>- Overrides:
defaultReturnValuein classAbstractReference2IntFunction<K>
-
containsKey
public boolean containsKey(java.lang.Object k)- Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.Function<K,java.lang.Integer>
-
put
- Specified by:
putin interfaceit.unimi.dsi.fastutil.objects.Reference2IntFunction<K>
-
getInt
public int getInt(java.lang.Object k)- Specified by:
getIntin interfaceit.unimi.dsi.fastutil.objects.Reference2IntFunction<K>
-
getOrDefault
public int getOrDefault(java.lang.Object k, int defaultValue)- Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.objects.Reference2IntFunction<K>
-
removeInt
public int removeInt(java.lang.Object k)- Specified by:
removeIntin interfaceit.unimi.dsi.fastutil.objects.Reference2IntFunction<K>
-
clear
public void clear()- Specified by:
clearin interfaceit.unimi.dsi.fastutil.Function<K,java.lang.Integer>
-
put
Deprecated.Please use the corresponding type-specific method instead. -
get
@Deprecated public java.lang.Integer get(java.lang.Object k)Deprecated.Please use the corresponding type-specific method instead. -
getOrDefault
@Deprecated public java.lang.Integer getOrDefault(java.lang.Object k, java.lang.Integer defaultValue)Deprecated.Please use the corresponding type-specific method instead. -
remove
@Deprecated public java.lang.Integer remove(java.lang.Object k)Deprecated.Please use the corresponding type-specific method instead. -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-