mercredi 13 avril 2016

Get class name from static method reference

What to replace foo() with?

for (MyFuncInt m : { Class1::method, Class2::method })
  System.out.println(foo()); // want Class1, Class2 etc here

Sorry about brevity. Mobile device ;)





Aucun commentaire:

Enregistrer un commentaire