I have a SomeClass implements InterfaceA.
I have a method:
public void doSomething(List<SomeClass) objects);
Inside this method I want to call:
public void doProcessing(List<InterfaceA) o);
How can I do it?
The following does not work although SomeClass isa InterfaceA:
public void doSomething(List<SomeClass> objects){
doProcessing(objects);
}
What is the standard way to handle this?
should work.
Read http://java.sun.com/j2se/1.5/pdf/generics-tutorial.pdf , at least twice.