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