I need to override this method:
@Override
public <T> T convertValue(Object object, Class<T> clazz)
problem is I dont know why. I dont understand what is <T>
. I try to rewrite it and replace T with String class:
public <String> String convertValue(Object object, Class<String> clazz){
return "a";
}
but this give me error:
Type mismatch: cannot convert from java.lang.String to String
so now I am really confused. Can someone explain me this and show some example how to return some value ?