Java Method override with the parameter "Class<? extends Object>"
<p>I got a problem with java when i try to override a method,my code is following:</p>

<pre><code>public abstract class CustomAdapter{
    public abstract Boolean addItem(Class&lt;? extends Object&gt; aObject);
}

public class RainAdapter extends CustomAdapter {
    @Override
    public Boolean addItem(ClassOfRain aRainInfo) {
        // do something
    return true;
    }
}
</code></pre>

<p>Can I declare the the "Class" to "ClassOfRain"?
If yes,how to do?</p>

<p>Thanks for your reading!</p>
