I have a POJO with loads of Strings and I want an easy method to check if they are all empty / contain a certain character / whatever.
I get the String variables with this:
Field[] fields = this.getClass().getDeclaredFields();
for (Field f : fields) {
if (f.getType() == java.lang.String.class) {
Log.d("REF", "Field: " + f.getName());
}
}
but I don't know how to get the String value of the Field. How is it done?