K
- the type of the keys in this mapV
- the type of the values in this mappublic interface Get<K,V>
Map
interface.Put
Modifier and Type | Method and Description |
---|---|
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<K,V>> |
entrySet() |
V |
get(Object key) |
boolean |
isEmpty() |
Set<K> |
keySet() |
V |
remove(Object key) |
int |
size() |
Collection<V> |
values() |
boolean containsKey(Object key)
key
- key whose presence in this map is to be testedtrue
if this map contains a mapping for the specified
keyMap.containsKey(Object)
boolean containsValue(Object value)
value
- value whose presence in this map is to be testedtrue
if this map maps one or more keys to the
specified valueMap.containsValue(Object)
Set<Map.Entry<K,V>> entrySet()
Map.entrySet()
V get(Object key)
key
- the key whose associated value is to be returnednull
if this map contains no mapping for the keyMap.get(Object)
V remove(Object key)
key
- key whose mapping is to be removed from the mapkey
, or
null
if there was no mapping for key
.Map.remove(Object)
boolean isEmpty()
true
if this map contains no key-value mappingsMap.isEmpty()
Set<K> keySet()
Map.keySet()
int size()
Map.size()
Collection<V> values()
Map.values()
Copyright © 2001–2019 The Apache Software Foundation. All rights reserved.