title: How to test if interface Foo<Bar> is "assignable" from Baz?
body: <h3>Code:</h3>
  
  <pre><code>System.out.println(Comparable.&lt;Integer&gt;isAssignableFrom(one.getClass()));
  </code></pre>
  
  <h3>Error:</h3>
  
  <pre><code>comp.java:16: cannot find symbol
  symbol  : method &lt;java.lang.Integer&gt;isAssignableFrom(java.lang.Class&lt;capture#128
  of ? extends java.lang.Integer&gt;)
  location: interface java.lang.Comparable
      System.out.println(Comparable.&lt;Integer&gt;isAssignableFrom(one.getClass()));
  </code></pre>
  
  <p>How can I determine whether some given type can be passed as an argument of type SomeInterface?</p>
  
  <p>PS: Is there a Java reference manual/programmer's handbook that would have given me the answer to this question in reasonable time (i.e. without requiring reading thousands of pages of irrelevant verbiage)?  At the moment I find myself programming Java by trial-and-error, which really sucks.</p>