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 boolean
containsKey(java.lang.Object key)
boolean
containsValue(java.lang.Object value)
java.util.Set<java.util.Map.Entry<K,V>>
entrySet()
boolean
equals(java.lang.Object object)
V
get(java.lang.Object key)
int
hashCode()
boolean
isEmpty()
java.util.Set<K>
keySet()
MapIterator<K,V>
mapIterator()
Get a MapIterator over this Get.V
remove(java.lang.Object key)
int
size()
java.lang.String
toString()
java.util.Collection<V>
values()
-
-
-
Method Detail
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey
in interfaceGet<K,V>
- Parameters:
key
- key whose presence in this map is to be tested- Returns:
true
if this map contains a mapping for the specified key- See Also:
Map.containsKey(Object)
-
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue
in interfaceGet<K,V>
- Parameters:
value
- value whose presence in this map is to be tested- Returns:
true
if 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:
mapIterator
in interfaceIterableGet<K,V>
- Returns:
- MapIterator<K, V>
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-