K - the type of the keys in this mapV - the type of the values in this mappublic class AbstractIterableGetMapDecorator<K,V> extends Object implements IterableGet<K,V>
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractIterableGetMapDecorator()
Constructor only used in deserialization, do not use otherwise.
|
|
AbstractIterableGetMapDecorator(Map<K,V> map)
Create a new AbstractSplitMapDecorator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
protected Map<K,V> |
decorated()
Gets the map being decorated.
|
Set<Map.Entry<K,V>> |
entrySet() |
boolean |
equals(Object object) |
V |
get(Object key) |
int |
hashCode() |
boolean |
isEmpty() |
Set<K> |
keySet() |
MapIterator<K,V> |
mapIterator()
Get a MapIterator over this Get.
|
V |
remove(Object key) |
int |
size() |
String |
toString() |
Collection<V> |
values() |
public AbstractIterableGetMapDecorator(Map<K,V> map)
map - the map to decorate, must not be nullNullPointerException - if map is nullprotected AbstractIterableGetMapDecorator()
public boolean containsKey(Object key)
containsKey in interface Get<K,V>key - key whose presence in this map is to be testedtrue if this map contains a mapping for the specified
keyMap.containsKey(Object)public boolean containsValue(Object value)
containsValue in interface Get<K,V>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)public Set<Map.Entry<K,V>> entrySet()
entrySet in interface Get<K,V>Map.entrySet()public V get(Object key)
get in interface Get<K,V>key - the key whose associated value is to be returnednull if this map contains no mapping for the keyMap.get(Object)public V remove(Object key)
remove in interface Get<K,V>key - key whose mapping is to be removed from the mapkey, or
null if there was no mapping for key.Map.remove(Object)public boolean isEmpty()
isEmpty in interface Get<K,V>true if this map contains no key-value mappingsMap.isEmpty()public Set<K> keySet()
keySet in interface Get<K,V>Map.keySet()public int size()
size in interface Get<K,V>Map.size()public Collection<V> values()
values in interface Get<K,V>Map.values()public MapIterator<K,V> mapIterator()
mapIterator in interface IterableGet<K,V>Copyright © 2001–2019 The Apache Software Foundation. All rights reserved.