mercredi 21 juin 2017

Send a method implementation as parameter

Okay I am developing this library where I need the user to be able to implement his own implementation of a rendering method if "default" is not satisfactory, how would I do this?

I know it's possible to send functions in JavaScript and I think I need a similar construct in Java..

I have been considering lambdas and also the Method class of Java..

What would you guys say are my best alternative?





Aucun commentaire:

Enregistrer un commentaire