title: Java - Class Field / Method getInt
body: <p>I have an interface which contains only int values (so in essence, it is pretty similar to an enum).</p>
  
  <p>I want to iterate the interface values, using the following piece of code:</p>
  
  <pre><code>for (Field x : MyInterface.class.getDeclaredFields())
  {
      int y = x.getInt(x);
      // do something with 'y'...
  }
  </code></pre>
  
  <p>The way I see it, either the getInt method can be static, or it doesn't need any arguments.</p>
  
  <p>So why does this method need both 'this' and the additional argument?</p>
  
  <p>Is there any plausible scenario for them to be different?</p>