I have
Field f = this.getClass().getFields()[0];
I need to know if f‘s value in this is null or not. There are many methods like getInt() and getDouble(), but I have not found a method like Object getData() or isNull(). Is there such a method?
field.get(target)returnsObject. So you can checkif (field.get(this) == null) {..}If the field is primitive, it will get wrapped.
int->Integer,char->Character, etc.