title: Java Bounded type parameters error
body: <p>Why I cannot use Iterator here? 
  Netbeans says that there is a difference between T in iterator and T in method declaration.</p>
  
  <pre><code>public abstract class DeviceManager&lt;T&gt; {
  
  
  private List&lt;T&gt; devices = new ArrayList&lt;T&gt;();
  private Class&lt;T&gt; deviceClass;
  
  public DeviceManager(Class&lt;T&gt; deviceClass){
      this.deviceClass = deviceClass;
  }
  
  public  &lt;T&gt; T find(T device){
      Iterator&lt;T&gt; iterator = devices.iterator();
          while(iterator.hasNext()) {
              T current = iterator.next();
              if (current.equals(device)) {
                  return current;
              }
  
      }
      return null;
  }
  </code></pre>