Package it.unimi.dsi.fastutil.objects
Class Reference2LongFunctions.PrimitiveFunction<K>
java.lang.Object
it.unimi.dsi.fastutil.objects.Reference2LongFunctions.PrimitiveFunction<K>
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,java.lang.Long>,it.unimi.dsi.fastutil.objects.Reference2LongFunction<K>,java.util.function.Function<K,java.lang.Long>,java.util.function.ToLongFunction<K>
- Enclosing class:
- Reference2LongFunctions
public static class Reference2LongFunctions.PrimitiveFunction<K>
extends java.lang.Object
implements it.unimi.dsi.fastutil.objects.Reference2LongFunction<K>
An adapter for mapping generic total functions to partial primitive functions.
-
Method Summary
Modifier and Type Method Description booleancontainsKey(java.lang.Object key)java.lang.Longget(java.lang.Object key)Deprecated.longgetLong(java.lang.Object key)longgetOrDefault(java.lang.Object key, long defaultValue)java.lang.LonggetOrDefault(java.lang.Object key, java.lang.Long defaultValue)Deprecated.java.lang.Longput(K key, java.lang.Long value)Deprecated.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface it.unimi.dsi.fastutil.Function
apply, clear, sizeMethods inherited from interface java.util.function.Function
composeMethods inherited from interface it.unimi.dsi.fastutil.objects.Reference2LongFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsLong, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, defaultReturnValue, defaultReturnValue, put, remove, removeLong
-
Method Details
-
containsKey
public boolean containsKey(java.lang.Object key)- Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.Function<K,java.lang.Long>
-
getLong
public long getLong(java.lang.Object key)- Specified by:
getLongin interfaceit.unimi.dsi.fastutil.objects.Reference2LongFunction<K>
-
getOrDefault
public long getOrDefault(java.lang.Object key, long defaultValue)- Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.objects.Reference2LongFunction<K>
-
get
@Deprecated public java.lang.Long get(java.lang.Object key)Deprecated. -
getOrDefault
@Deprecated public java.lang.Long getOrDefault(java.lang.Object key, java.lang.Long defaultValue)Deprecated. -
put
Deprecated.
-