Skip to content

MohammadShojaeinia/deep-merge-object

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kata-merge-object

Using reflection to merge two objects. The second prevails over the first, the rules are:

  • All present values on the second object must prevail over the first one.
  • The values null on the second object must be filled with the value of the first one if present.

The result is a third object merged with the rules above.

This exercise is explained on: http://www.joantolos.com/blog/mergeobject

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 61.8%
  • Groovy 38.2%