title: java list of objects that all implement an interface
body: <p>Suppose I have a class that implements an interface:</p>
  
  <pre><code>public class A implements IB
  </code></pre>
  
  <p>and I have a <code>List&lt;A&gt;</code> that I would like to reference to: <code>List&lt;? implements IB&gt; list</code>.
  So that I can code: <code>for (IB item : list)</code> etc.</p>
  
  <p>Can it be done somehow in Java? There is no <code>&lt;? implements ...&gt;</code> possibility.
  What am I missing?</p>