be.idamf.sofa.mapper
Class AbstractBidirectionalMapper<A,B>
java.lang.Object
be.idamf.sofa.mapper.AbstractMapper<A,B>
be.idamf.sofa.mapper.AbstractBidirectionalMapper<A,B>
- All Implemented Interfaces:
- BidirectionalMapper<A,B>, Mapper<A,B>
- Direct Known Subclasses:
- AbstractBidirectionalStrategyMapper
public abstract class AbstractBidirectionalMapper<A,B>
- extends AbstractMapper<A,B>
- implements BidirectionalMapper<A,B>
- Author:
- Mike Seghers
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractBidirectionalMapper
public AbstractBidirectionalMapper()
mapCollectionOfBToCollectionOfA
public <C extends Collection<A>> C mapCollectionOfBToCollectionOfA(Collection<B> collectionOfB,
C emptyMutableCollectionOfA)
- Map a collection of objects of type B to a collection of objects of type A.
- Specified by:
mapCollectionOfBToCollectionOfA in interface BidirectionalMapper<A,B>
- Type Parameters:
C - The type of the resulting collection- Parameters:
collectionOfB - the collection of objects of type BemptyMutableCollectionOfA - an instance of the collection of objects of type A, which will be filled up
- Returns:
- a collection of objects of type A
Copyright © 2013 iDA-MediaFoundry. All Rights Reserved.