public class MapCollectionHandler extends AbstractCollectionHandler<Map>
Constructor and Description |
---|
MapCollectionHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
clear(Map target)
Calls the clear method on the target collection
|
Map |
copy(BeanMapper beanMapper,
Class collectionElementClass,
Map source,
Map target)
Takes all the content from source and offers it to target.
|
protected Map |
create()
Creates a new instance of the collection class
|
protected int |
getGenericParameterIndex()
The generic parameter type of the Map value must be determined, not the key.
|
int |
size(Map targetCollection) |
create, determineGenericParameterFromType, getTargetCollection, getType, isMatch, mapItem
public Map copy(BeanMapper beanMapper, Class collectionElementClass, Map source, Map target)
CollectionHandler
beanMapper
- the beanmapper to use for mapping the individual itemscollectionElementClass
- the class of an item within the target collectionsource
- the source collection of itemstarget
- the target collection where the mapped source items will end uppublic int size(Map targetCollection)
protected void clear(Map target)
AbstractCollectionHandler
clear
in class AbstractCollectionHandler<Map>
target
- the collection to call clear() onprotected Map create()
AbstractCollectionHandler
create
in class AbstractCollectionHandler<Map>
protected int getGenericParameterIndex()
getGenericParameterIndex
in class AbstractCollectionHandler<Map>
Copyright © 2015–2018 42 BV. All rights reserved.