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
- Since:
- 4.0
-
Constructor Summary
ModifierConstructorDescriptionprotected
Constructor only used in deserialization, do not use otherwise.AbstractIterableGetMapDecorator
(Map<K, V> map) Create a new AbstractSplitMapDecorator. -
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(Object key) Tests for presence of a given key.boolean
containsValue
(Object value) Tests for presence of a given value.Gets the map being decorated.entrySet()
Gets a set view of the mappings contained in this map.boolean
Gets a value at a given key.int
hashCode()
boolean
isEmpty()
Tests whether this instance contains any key-value mappings.keySet()
Gets a view of the keys contained in this map.Gets a MapIterator over this Get.Remove a key-value mappings.int
size()
Gets the number of key-value mappings in this map.toString()
values()
Gets a a collection view of the values contained in this map.
-
Constructor Details
-
AbstractIterableGetMapDecorator
protected AbstractIterableGetMapDecorator()Constructor only used in deserialization, do not use otherwise. -
AbstractIterableGetMapDecorator
Create a new AbstractSplitMapDecorator.- Parameters:
map
- the map to decorate, must not be null- Throws:
NullPointerException
- if map is null
-
-
Method Details
-
containsKey
Description copied from interface:Get
Tests for presence of a given 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:
-
containsValue
Description copied from interface:Get
Tests for presence of a given 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:
-
decorated
Gets the map being decorated.- Returns:
- the decorated map
-
entrySet
Description copied from interface:Get
Gets a set view of the mappings contained in this map. -
equals
-
get
Description copied from interface:Get
Gets a value at a given key. -
hashCode
-
isEmpty
Description copied from interface:Get
Tests whether this instance contains any key-value mappings. -
keySet
Description copied from interface:Get
Gets a view of the keys contained in this map. -
mapIterator
Gets a MapIterator over this Get.- Specified by:
mapIterator
in interfaceIterableGet<K,
V> - Returns:
- MapIterator<K, V>
-
remove
Description copied from interface:Get
Remove a key-value mappings. -
size
Description copied from interface:Get
Gets the number of key-value mappings in this map. -
toString
-
values
Description copied from interface:Get
Gets a a collection view of the values contained in this map.
-