Package it.unimi.dsi.fastutil.objects
Class Object2LongFunctions.UnmodifiableFunction<K>
java.lang.Object
it.unimi.dsi.fastutil.objects.AbstractObject2LongFunction<K>
it.unimi.dsi.fastutil.objects.Object2LongFunctions.UnmodifiableFunction<K>
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,,Long> it.unimi.dsi.fastutil.objects.Object2LongFunction<K>,Serializable,Function<K,,Long> ToLongFunction<K>
- Direct Known Subclasses:
Object2LongMaps.UnmodifiableMap
- Enclosing class:
Object2LongFunctions
public static class Object2LongFunctions.UnmodifiableFunction<K>
extends AbstractObject2LongFunction<K>
implements Serializable
An unmodifiable wrapper class for functions.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final it.unimi.dsi.fastutil.objects.Object2LongFunction<? extends K> Fields inherited from class it.unimi.dsi.fastutil.objects.AbstractObject2LongFunction
defRetValue -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUnmodifiableFunction(it.unimi.dsi.fastutil.objects.Object2LongFunction<? extends K> f) -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()booleanlongvoiddefaultReturnValue(long defRetValue) booleanDeprecated.Please use the corresponding type-specific method instead.longlonggetOrDefault(Object k, long defaultValue) getOrDefault(Object k, Long defaultValue) Deprecated.Please use the corresponding type-specific method instead.inthashCode()longDeprecated.Please use the corresponding type-specific method instead.Deprecated.Please use the corresponding type-specific method instead.longremoveLong(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.Object2LongFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsLong, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort
-
Field Details
-
function
-
-
Constructor Details
-
UnmodifiableFunction
-
-
Method Details
-
size
public int size() -
defaultReturnValue
public long defaultReturnValue()- Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.objects.Object2LongFunction<K>- Overrides:
defaultReturnValuein classAbstractObject2LongFunction<K>
-
defaultReturnValue
public void defaultReturnValue(long defRetValue) - Specified by:
defaultReturnValuein interfaceit.unimi.dsi.fastutil.objects.Object2LongFunction<K>- Overrides:
defaultReturnValuein classAbstractObject2LongFunction<K>
-
containsKey
-
put
- Specified by:
putin interfaceit.unimi.dsi.fastutil.objects.Object2LongFunction<K>
-
getLong
- Specified by:
getLongin interfaceit.unimi.dsi.fastutil.objects.Object2LongFunction<K>
-
getOrDefault
- Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.objects.Object2LongFunction<K>
-
removeLong
- Specified by:
removeLongin interfaceit.unimi.dsi.fastutil.objects.Object2LongFunction<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
-