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

Add the ability to get all inherited fields in PojoClass interface. #101

Open
oshoukry opened this issue May 30, 2017 · 2 comments
Open
Assignees

Comments

@oshoukry
Copy link
Member

oshoukry commented May 30, 2017

Need a way to get all inherited fields in one call, something like:

PojoClass {
  [...]
  public List<PojoField> getAllPojoFields();  // return all declared and inherited.
  public List<PojoField> getInheritedPojoFields(); // return inherited only fields.
}

This will simplify workflow instead of having to re-implement the boilerplate code over and over in every framework.

@drdamour
Copy link

what about getPojoField(boolean inherited) overload

@oshoukry
Copy link
Member Author

I am not a fan of boolean parameters that change behavior in general. I can see the simplicity in how it looks though.

@oshoukry oshoukry modified the milestones: 0.8.7, 0.8.8 Jan 7, 2018
@oshoukry oshoukry modified the milestones: 0.8.8, Shipping Next Feb 10, 2018
@oshoukry oshoukry removed this from the Shipping Next milestone Mar 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants