- get generic type from list class
https://stackoverflow.com/questions/1942644/get-generic-type-of-java-util-list
- get generic type from array class
Class<?> arrayCls = String[].class;
if(arrayCls.isArray()){
Class<?> cls = arrayCls.getComponentType();
}
https://stackoverflow.com/questions/13392160/about-java-get-string-class-from-string-class-what-if-string-class-is
'java' 카테고리의 다른 글
remove null value or empty value (0) | 2023.10.31 |
---|---|
change annotation value at runtime (0) | 2023.10.24 |
get all classes-classLoader (0) | 2023.10.13 |
정규표현식 (0) | 2023.08.18 |
정규식 이용한 마스킹 처리 (0) | 2023.08.18 |