org.apache.commons.collections4.splitmap
Class AbstractIterableGetMapDecorator<K,V>
java.lang.Object
org.apache.commons.collections4.splitmap.AbstractIterableGetMapDecorator<K,V>
- All Implemented Interfaces:
- Get<K,V>, IterableGet<K,V>
- Direct Known Subclasses:
- TransformedSplitMap
public class AbstractIterableGetMapDecorator<K,V>
- extends Object
- implements IterableGet<K,V>
IterableGet
that uses a Map
for the
Get
implementation.
- Since:
- 4.0
- Version:
- $Id: AbstractIterableGetMapDecorator.java 1494296 2013-06-18 20:54:29Z tn $
AbstractIterableGetMapDecorator
public AbstractIterableGetMapDecorator(Map<K,V> decorated)
- Create a new AbstractSplitMapDecorator.
- Parameters:
decorated
- the Map to decorate
AbstractIterableGetMapDecorator
protected AbstractIterableGetMapDecorator()
- Constructor only used in deserialization, do not use otherwise.
decorated
protected Map<K,V> decorated()
- Gets the map being decorated.
- Returns:
- the decorated map
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKey
in interface Get<K,V>
- See Also:
Map.containsKey(Object)
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValue
in interface Get<K,V>
- See Also:
Map.containsValue(Object)
entrySet
public Set<Map.Entry<K,V>> entrySet()
- Specified by:
entrySet
in interface Get<K,V>
- See Also:
Map.entrySet()
get
public V get(Object key)
- Specified by:
get
in interface Get<K,V>
- See Also:
Map.get(Object)
remove
public V remove(Object key)
- Specified by:
remove
in interface Get<K,V>
- See Also:
Map.remove(Object)
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Get<K,V>
- See Also:
Map.isEmpty()
keySet
public Set<K> keySet()
- Specified by:
keySet
in interface Get<K,V>
- See Also:
Map.keySet()
size
public int size()
- Specified by:
size
in interface Get<K,V>
- See Also:
Map.size()
values
public Collection<V> values()
- Specified by:
values
in interface Get<K,V>
- See Also:
Map.values()
mapIterator
public MapIterator<K,V> mapIterator()
- Get a MapIterator over this Get.
- Specified by:
mapIterator
in interface IterableGet<K,V>
- Returns:
- MapIterator
equals
public boolean equals(Object object)
- Overrides:
equals
in class Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2001–2013 The Apache Software Foundation. All rights reserved.