public class ListCollectionHandler extends AbstractCollectionHandler<List>
Constructor and Description |
---|
ListCollectionHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
clear(List target)
Calls the clear method on the target collection
|
List |
copy(BeanMapper beanMapper,
Class collectionElementClass,
List source,
List target)
Takes all the content from source and offers it to target.
|
protected List |
create()
Creates a new instance of the collection class
|
int |
size(List targetCollection) |
create, determineGenericParameterFromType, getGenericParameterIndex, getTargetCollection, getType, isMatch, mapItem
public List copy(BeanMapper beanMapper, Class collectionElementClass, List source, List 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(List targetCollection)
protected void clear(List target)
AbstractCollectionHandler
clear
in class AbstractCollectionHandler<List>
target
- the collection to call clear() onprotected List create()
AbstractCollectionHandler
create
in class AbstractCollectionHandler<List>
Copyright © 2015–2018 42 BV. All rights reserved.