Function<K,java.lang.Integer>, Reference2IntFunction<K>, java.util.function.Function<K,java.lang.Integer>, java.util.function.ToIntFunction<K>public static class Reference2IntFunctions.PrimitiveFunction<K> extends java.lang.Object implements Reference2IntFunction<K>
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
containsKey(java.lang.Object key) |
Returns true if this function contains a mapping for the specified key.
|
java.lang.Integer |
get(java.lang.Object key) |
Deprecated.
|
int |
getInt(java.lang.Object key) |
Returns the value to which the given key is mapped.
|
java.lang.Integer |
put(K key,
java.lang.Integer value) |
Deprecated.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyAsInt, defaultReturnValue, defaultReturnValue, put, remove, removeIntpublic boolean containsKey(java.lang.Object key)
FunctionNote that for some kind of functions (e.g., hashes) this method will always return true. This default implementation, in particular, always return true.
containsKey in interface Function<K,java.lang.Integer>key - the key.key.Map.containsKey(Object)public int getInt(java.lang.Object key)
Reference2IntFunctiongetInt in interface Reference2IntFunction<K>key - the key.Function.get(Object)@Deprecated public java.lang.Integer get(java.lang.Object key)
Reference2IntFunction@Deprecated public java.lang.Integer put(K key, java.lang.Integer value)
Reference2IntFunction