Skip to content

Commit

Permalink
增加直接copy到实例
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou-hao committed May 27, 2021
1 parent bee3682 commit 710c5dc
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ default <T> T copyTo(Class<T> target, String... ignoreProperties) {
return FastBeanCopier.copy(this, target, ignoreProperties);
}

default <T> T copyTo(T target, String... ignoreProperties) {
return FastBeanCopier.copy(this, target, ignoreProperties);
}

@SuppressWarnings("all")
default <T> T copyFrom(Object target, String... ignoreProperties) {
return (T) FastBeanCopier.copy(target, this, ignoreProperties);
Expand Down

0 comments on commit 710c5dc

Please sign in to comment.