Class AbstractIterableGetMapDecorator<K,V>
- java.lang.Object
-
- org.apache.commons.collections4.splitmap.AbstractIterableGetMapDecorator<K,V>
-
- Type Parameters:
K- the type of the keys in this mapV- the type of the values in this map
- All Implemented Interfaces:
Get<K,V>,IterableGet<K,V>
- Direct Known Subclasses:
TransformedSplitMap
public class AbstractIterableGetMapDecorator<K,V> extends java.lang.Object implements IterableGet<K,V>
- Since:
- 4.0
-
-
Constructor Summary
Constructors Constructor Description AbstractIterableGetMapDecorator(java.util.Map<K,V> map)Create a new AbstractSplitMapDecorator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsKey(java.lang.Object key)booleancontainsValue(java.lang.Object value)java.util.Set<java.util.Map.Entry<K,V>>entrySet()booleanequals(java.lang.Object object)Vget(java.lang.Object key)inthashCode()booleanisEmpty()java.util.Set<K>keySet()MapIterator<K,V>mapIterator()Get a MapIterator over this Get.Vremove(java.lang.Object key)intsize()java.lang.StringtoString()java.util.Collection<V>values()
-
-
-
Method Detail
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKeyin interfaceGet<K,V>- Parameters:
key- key whose presence in this map is to be tested- Returns:
trueif this map contains a mapping for the specified key- See Also:
Map.containsKey(Object)
-
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValuein interfaceGet<K,V>- Parameters:
value- value whose presence in this map is to be tested- Returns:
trueif this map maps one or more keys to the specified value- See Also:
Map.containsValue(Object)
-
get
public V get(java.lang.Object key)
-
remove
public V remove(java.lang.Object key)
-
isEmpty
public boolean isEmpty()
-
keySet
public java.util.Set<K> keySet()
-
size
public int size()
-
values
public java.util.Collection<V> values()
-
mapIterator
public MapIterator<K,V> mapIterator()
Get a MapIterator over this Get.- Specified by:
mapIteratorin interfaceIterableGet<K,V>- Returns:
- MapIterator<K, V>
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-