This question already has an answer here:
I have the following method:
public <T> void meth(T t){
}
Inside method I need to check that t
is Collection of String(List<String>
, Set<String>
, etc)
I understand that I can do it using reflection but I don't know how certainly.
Aucun commentaire:
Enregistrer un commentaire