Package it.unimi.dsi.fastutil.objects
Class Object2ByteFunctions.UnmodifiableFunction<K>
java.lang.Object
it.unimi.dsi.fastutil.objects.AbstractObject2ByteFunction<K>
it.unimi.dsi.fastutil.objects.Object2ByteFunctions.UnmodifiableFunction<K>
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,,Byte> it.unimi.dsi.fastutil.objects.Object2ByteFunction<K>,Serializable,Function<K,,Byte> ToIntFunction<K>
- Direct Known Subclasses:
Object2ByteMaps.UnmodifiableMap
- Enclosing class:
Object2ByteFunctions
public static class Object2ByteFunctions.UnmodifiableFunction<K>
extends AbstractObject2ByteFunction<K>
implements Serializable
An unmodifiable wrapper class for functions.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.objects.Object2ByteFunction<? extends K> Fields inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2ByteFunction
defRetValue -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUnmodifiableFunction(it.unimi.dsi.fastutil.objects.Object2ByteFunction<? extends K> f) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleanbytevoiddefaultReturnValue(byte defRetValue) booleanDeprecated.Please use the corresponding type-specific method instead.bytebytegetOrDefault(Object k, byte defaultValue) getOrDefault(Object k, Byte defaultValue) Deprecated.Please use the corresponding type-specific method instead.inthashCode()byteDeprecated.Please use the corresponding type-specific method instead.Deprecated.Please use the corresponding type-specific method instead.byteremoveByte(Object k) intsize()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.Object2ByteFunction
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 byte defaultReturnValue()- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.objects.Object2ByteFunction<K>- Overrides:
defaultReturnValuein classAbstractObject2ByteFunction<K>
-
defaultReturnValue
public void defaultReturnValue(byte defRetValue) - Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.objects.Object2ByteFunction<K>- Overrides:
defaultReturnValuein classAbstractObject2ByteFunction<K>
-
containsKey
-
put
- Specified by:
putin interfaceit.unimi.dsi.fastutil.objects.Object2ByteFunction<K>
-
getByte
- Specified by:
getBytein interfaceit.unimi.dsi.fastutil.objects.Object2ByteFunction<K>
-
getOrDefault
- Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.objects.Object2ByteFunction<K>
-
removeByte
- Specified by:
removeBytein interfaceit.unimi.dsi.fastutil.objects.Object2ByteFunction<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
-