title: How to test whether the value of a Java field gotten by reflection is null?
body: <p>I have</p>
  
  <pre><code>Field f = this.getClass().getFields()[0];
  </code></pre>
  
  <p>I need to know if <code>f</code>'s value in <code>this</code> is <code>null</code> or not. There are many methods like <code>getInt()</code> and <code>getDouble()</code>, but I have not found a method like <code>Object getData()</code> or <code>isNull()</code>.  Is there such a method?</p>