Package it.unimi.dsi.fastutil.ints
Class Int2CharFunctions.UnmodifiableFunction
java.lang.Object
it.unimi.dsi.fastutil.ints.AbstractInt2CharFunction
it.unimi.dsi.fastutil.ints.Int2CharFunctions.UnmodifiableFunction
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<java.lang.Integer,java.lang.Character>,it.unimi.dsi.fastutil.ints.Int2CharFunction,java.io.Serializable,java.util.function.Function<java.lang.Integer,java.lang.Character>,java.util.function.IntUnaryOperator
- Direct Known Subclasses:
Int2CharMaps.UnmodifiableMap
- Enclosing class:
- Int2CharFunctions
public static class Int2CharFunctions.UnmodifiableFunction extends AbstractInt2CharFunction implements java.io.Serializable
An unmodifiable wrapper class for functions.
- See Also:
- Serialized Form
-
Method Summary
Modifier and Type Method Description voidclear()booleancontainsKey(int k)chardefaultReturnValue()voiddefaultReturnValue(char defRetValue)booleanequals(java.lang.Object o)charget(int k)java.lang.Characterget(java.lang.Object k)Deprecated.Please use the corresponding type-specific method instead.chargetOrDefault(int k, char defaultValue)java.lang.CharactergetOrDefault(java.lang.Object k, java.lang.Character defaultValue)Deprecated.Please use the corresponding type-specific method instead.inthashCode()charput(int k, char v)java.lang.Characterput(java.lang.Integer k, java.lang.Character v)Deprecated.Please use the corresponding type-specific method instead.charremove(int k)java.lang.Characterremove(java.lang.Object k)Deprecated.Please use the corresponding type-specific method instead.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 it.unimi.dsi.fastutil.ints.Int2CharFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsInt, compose, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, containsKeyMethods inherited from interface java.util.function.IntUnaryOperator
andThen, compose
-
Method Details
-
size
public int size()- Specified by:
sizein interfaceit.unimi.dsi.fastutil.Function<java.lang.Integer,java.lang.Character>
-
defaultReturnValue
public char defaultReturnValue()- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.ints.Int2CharFunction- Overrides:
defaultReturnValuein classAbstractInt2CharFunction
-
defaultReturnValue
public void defaultReturnValue(char defRetValue)- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.ints.Int2CharFunction- Overrides:
defaultReturnValuein classAbstractInt2CharFunction
-
containsKey
public boolean containsKey(int k)- Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.ints.Int2CharFunction
-
put
public char put(int k, char v)- Specified by:
putin interfaceit.unimi.dsi.fastutil.ints.Int2CharFunction
-
get
public char get(int k)- Specified by:
getin interfaceit.unimi.dsi.fastutil.ints.Int2CharFunction
-
getOrDefault
public char getOrDefault(int k, char defaultValue)- Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.ints.Int2CharFunction
-
remove
public char remove(int k)- Specified by:
removein interfaceit.unimi.dsi.fastutil.ints.Int2CharFunction
-
clear
public void clear()- Specified by:
clearin interfaceit.unimi.dsi.fastutil.Function<java.lang.Integer,java.lang.Character>
-
put
@Deprecated public java.lang.Character put(java.lang.Integer k, java.lang.Character v)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
putin interfaceit.unimi.dsi.fastutil.Function<java.lang.Integer,java.lang.Character>- Specified by:
putin interfaceit.unimi.dsi.fastutil.ints.Int2CharFunction
-
get
@Deprecated public java.lang.Character get(java.lang.Object k)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
getin interfaceit.unimi.dsi.fastutil.Function<java.lang.Integer,java.lang.Character>- Specified by:
getin interfaceit.unimi.dsi.fastutil.ints.Int2CharFunction
-
getOrDefault
@Deprecated public java.lang.Character getOrDefault(java.lang.Object k, java.lang.Character defaultValue)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.Function<java.lang.Integer,java.lang.Character>- Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.ints.Int2CharFunction
-
remove
@Deprecated public java.lang.Character remove(java.lang.Object k)Deprecated.Please use the corresponding type-specific method instead.- Specified by:
removein interfaceit.unimi.dsi.fastutil.Function<java.lang.Integer,java.lang.Character>- Specified by:
removein interfaceit.unimi.dsi.fastutil.ints.Int2CharFunction
-
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
-