be.idamf.sofa.mapper
Interface BidirectionalMapper<A,B>

All Superinterfaces:
Mapper<A,B>
All Known Subinterfaces:
StrategyMapper<A,B>
All Known Implementing Classes:
AbstractBidirectionalMapper, AbstractBidirectionalStrategyMapper

public interface BidirectionalMapper<A,B>
extends Mapper<A,B>

A bidirectional mapper is able to map from A to B and vice versa.

Author:
Mike Seghers

Method Summary
 A mapBToA(B b)
          Map an object of type B to an object of type A.
<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 interface be.idamf.sofa.mapper.Mapper
mapAToB, mapCollectionOfAToCollectionOfB
 

Method Detail

mapBToA

A mapBToA(B b)
Map an object of type B to an object of type A.

Parameters:
b - the object of type B
Returns:
an object of type A

mapCollectionOfBToCollectionOfA

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

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.