Function<K,java.lang.Integer>, Object2IntFunction<K>, java.util.function.Function<K,java.lang.Integer>, java.util.function.ToIntFunction<K>public static class Object2IntFunctions.PrimitiveFunction<K> extends java.lang.Object implements Object2IntFunction<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)
Object2IntFunctiongetInt in interface Object2IntFunction<K>key - the key.Function.get(Object)@Deprecated public java.lang.Integer get(java.lang.Object key)
Object2IntFunction@Deprecated public java.lang.Integer put(K key, java.lang.Integer value)
Object2IntFunction