This library is currently WIP.
- Basic deep mapping(Based on field names).
- Support array or
Collection
. - Map or ignore fields conditionally.
- ...
Source source = ...; // Get a source bean
Mapper<Source, Target> mapper = MapperFactory.getMapperFor(Source.class, Target.class);
Target target = mapper.map(source); // Deep mapping
Or,
Source source = ...; // Get a source bean
Target target = ...; // Get an existing target bean
Mapper<Source, Target> mapper = MapperFactory.getMapperFor(Source.class, Target.class);
mapper.map(source, target); // Deep mapping