Package it.unimi.dsi.fastutil.objects
Class Reference2IntFunctions.PrimitiveFunction<K>
java.lang.Object
it.unimi.dsi.fastutil.objects.Reference2IntFunctions.PrimitiveFunction<K>
- All Implemented Interfaces:
it.unimi.dsi.fastutil.Function<K,java.lang.Integer>,it.unimi.dsi.fastutil.objects.Reference2IntFunction<K>,java.util.function.Function<K,java.lang.Integer>,java.util.function.ToIntFunction<K>
- Enclosing class:
- Reference2IntFunctions
public static class Reference2IntFunctions.PrimitiveFunction<K>
extends java.lang.Object
implements it.unimi.dsi.fastutil.objects.Reference2IntFunction<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.Integerget(java.lang.Object key)Deprecated.intgetInt(java.lang.Object key)intgetOrDefault(java.lang.Object key, int defaultValue)java.lang.IntegergetOrDefault(java.lang.Object key, java.lang.Integer defaultValue)Deprecated.java.lang.Integerput(K key, java.lang.Integer 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.Reference2IntFunction
andThen, andThenByte, andThenChar, andThenDouble, andThenFloat, andThenInt, andThenLong, andThenObject, andThenReference, andThenShort, applyAsInt, composeByte, composeChar, composeDouble, composeFloat, composeInt, composeLong, composeObject, composeReference, composeShort, defaultReturnValue, defaultReturnValue, put, remove, removeInt
-
Method Details
-
containsKey
public boolean containsKey(java.lang.Object key)- Specified by:
containsKeyin interfaceit.unimi.dsi.fastutil.Function<K,java.lang.Integer>
-
getInt
public int getInt(java.lang.Object key)- Specified by:
getIntin interfaceit.unimi.dsi.fastutil.objects.Reference2IntFunction<K>
-
getOrDefault
public int getOrDefault(java.lang.Object key, int defaultValue)- Specified by:
getOrDefaultin interfaceit.unimi.dsi.fastutil.objects.Reference2IntFunction<K>
-
get
@Deprecated public java.lang.Integer get(java.lang.Object key)Deprecated. -
getOrDefault
@Deprecated public java.lang.Integer getOrDefault(java.lang.Object key, java.lang.Integer defaultValue)Deprecated. -
put
Deprecated.
-