representsTypeOf

Returns true if declaration represents the type of T.

Due to type erasure, avoid passing generics as type arguments because they won't be accurately represented at runtime. For generics use representsType method instead and pass the string representing the type: No: representsTypeOf>() Yes: representsType("List")

Return

true if declaration represents the type of T, false otherwise.