I want to find out via reflection if a field is an instance of some type T.
T
Lets say I have an object o. Now I want to know if it has any
o
If you want to compare the field type of a custom class you should try this, use .class because only primitive types has .TYPE.
if(field.getType().isAssignableFrom(**YOURCLASS.class**)){}