lundi 8 juillet 2019

Distinguish if method has arbitrsry number of parameters through reflection

Is there any way to distinguish these two methods when using reflection to invoke it?

public void method(Object[] args) {}

public void method(Object... args) {}





Aucun commentaire:

Enregistrer un commentaire