Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bounded copy from #348

Open
pauxus opened this issue Dec 4, 2024 · 0 comments
Open

Bounded copy from #348

pauxus opened this issue Dec 4, 2024 · 0 comments

Comments

@pauxus
Copy link
Member

pauxus commented Dec 4, 2024

Idea: two disjunct classes with a common ancestor

Only copy does fields that are present in both object (source and target). This could either happen automatically, or (better) by providing a class, interface or list of field-names to be used as filter:

  • class: use all fields of the given class and its ancestor classes
  • interface: use the fields declared by the getter methods in the given interface
  • list: explicitly copy only the given field names
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant