Is the T class in generic Class<T> assignable from another class?
class, generics, java
Solution
`Class.isAssignableFrom`
Problem
Edit Since there were many downvotes and people who didn't understand what I'm asking for, I'll rephrase: How do I find out at runtime what is the class that foo was generified from? ``` public boolean doesClassImplementList(Class<?> genericClass) { // help me fill this in // this method should return true if genericClass implements List // I can't do this because it doesn't compile: return genericClass instanceof List; } ```