I have following code and now I have type, but I need to have some kind of switch to know if type is for example of String and then do handling for strings. So how can I check if Type t is type of String?
Type t = bean.getClass().getDeclaredField(fieldName).getType();