A work colleague was asking me something about assigning typed lists
and it wasn't working the way
it would work if you were simply dealing with single variables.
Class C implements interface D.
Then we have a list of interface D.
Another class E has a method findAll() which returns a list of type C.
But we can't assign E.findAll() to a list of type D.
listTwo = new ArrayList<Long>();
listOne = listTwo;
Error: "Incompatible types, Required List<java.lang.Comparable> Found:
Hmm... maybe we can cast the list?
listOne = (List<Comparable>) listTwo;
Error: Inconvertible types; cannot cast