I just got a quick question related to Java
: how do I determine if two class objects are from the same type.
// Pseudocode
if Class<?> instanceof Clazz
I use java.lang.reflect
and obtain the class object via the .getParameterTypes()
method. I just want to know if some method from the java.lang.reflect.Method
class contains a method to check the type of a parameter.
I hope you understood the question, otherwise feel free to ask!
Aucun commentaire:
Enregistrer un commentaire