public static class Object2IntFunctions.PrimitiveFunction<K> extends Object implements Object2IntFunction<K>
| Modifier and Type | Field and Description |
|---|---|
protected Function<? super K,? extends Integer> |
function |
| Modifier | Constructor and Description |
|---|---|
protected |
PrimitiveFunction(Function<? super K,? extends Integer> function) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(Object key)
Returns true if this function contains a mapping for the specified key.
|
Integer |
get(Object key)
Deprecated.
|
int |
getInt(Object key)
Returns the value to which the given key is mapped.
|
Integer |
put(K key,
Integer value)
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyAsInt, defaultReturnValue, defaultReturnValue, put, remove, removeIntpublic boolean containsKey(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.
key - the key.key.Map.containsKey(Object)public int getInt(Object key)
Object2IntFunctiongetInt in interface Object2IntFunction<K>key - the key.Function.get(Object)@Deprecated public Integer get(Object key)
Object2IntFunctionget in interface Object2IntFunction<K>key - the key.null if no value was present for the given key.Map.get(Object)@Deprecated public Integer put(K key, Integer value)
Object2IntFunctionput in interface Object2IntFunction<K>key - the key.value - the value.null if no value was present for the given key.Map.put(Object,Object)Copyright © 2020. All rights reserved.