I wonder is there a way to get all private fields of some class in java and their type.
For example lets suppose I have a class
class SomeClass {
Try FieldUtils from apache commons-lang3:
FieldUtils.getAllFieldsList(Class> cls)