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

FieldAccess with field types (Class<?>) #18

Merged
merged 5 commits into from
Dec 3, 2013

Conversation

gabrikid
Copy link
Contributor

@gabrikid gabrikid commented Dec 3, 2013

I added a feature to keep the field type (Class<?>), and to get the field type by index.
I also added a method to return the field count, which is useful to directly iterate all the fields, and without the need to get the fieldnames array. This way, the FieldAccess implementation can change without changing the iteration interface, since the .get and .set can work with indexes.

@gabrikid
Copy link
Contributor Author

gabrikid commented Dec 3, 2013

i also added a new content to readme.md file, on which i included an example on how to iterate all the fields by index.

NathanSweet added a commit that referenced this pull request Dec 3, 2013
FieldAccess with field types (Class<?>)
@NathanSweet NathanSweet merged commit 8de97df into EsotericSoftware:master Dec 3, 2013
@NathanSweet
Copy link
Member

Thanks! In the future please don't include "added" comments, the added lines can be seen in the diff. I removed them after merging. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants