be.idamf.sofa.mapper
Class AbstractBidirectionalMapper<A,B>

java.lang.Object
  extended by be.idamf.sofa.mapper.AbstractMapper<A,B>
      extended by 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

Constructor Summary
AbstractBidirectionalMapper()
           
 
Method Summary
<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.
 
Methods inherited from class be.idamf.sofa.mapper.AbstractMapper
mapCollectionOfAToCollectionOfB
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface be.idamf.sofa.mapper.BidirectionalMapper
mapBToA
 
Methods inherited from interface be.idamf.sofa.mapper.Mapper
mapAToB, mapCollectionOfAToCollectionOfB
 

Constructor Detail

AbstractBidirectionalMapper

public AbstractBidirectionalMapper()
Method Detail

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 B
emptyMutableCollectionOfA - 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.