title: Java - How to subclass the generic ArrayList so that instances of MyArrayList<foo> will be subclasses of ArrayList<foo>?
body: <p>I want to keep my subclass generic, and all I want to change is the <code>add(Object)</code> method of ArrayList so that it won't add anything when you call <code>arrayList.add(null)</code> (the normal implementation of ArrayList will add the <code>null</code>; I want it to do nothing). </p>