Skip to content

KeroZhai/morphling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This library is currently WIP.

Features

  • Basic deep mapping(Based on field names).
  • Support array or Collection.
  • Map or ignore fields conditionally.
  • ...

API Usage

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

About

A simple utility to copy Javabeans.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages