Skip to content

Latest commit

 

History

8 提交

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

仓库 files navigation

Clone Utils

This utility class clones and patches POJOs my using Jackson's object-mapper.

Usage

Clone object:

MyObject cloned = CloneUtils.deepClone(new MyObject());

Clone object to different type:

MyOtherType cloned = CloneUtils.deepClone(new MyObject(), MyOtherType.class);

Clone and patch object:

MyObject patchedClone = CloneUtils.deepClone(new MyObject(), new MyPatch());

Clone and patch object to different type:

MyOtherType patchedClone = CloneUtils.deepClone(new MyObject(), new MyPatch(), MyOtherType.class);

Build

$ mvn package

关于

Utility to clone class instances by its properties

Topics

Resources

Stars

0 stars

关注者

0 watching

复刻s

发布

Used by

贡献者

Languages