As you guys know , there are many example that we use java lambda to improve Strategy patterns and Observer patterns .
In the book "head first design patterns" page.532 to page.544 ,
We know that there is an observer pattern relationship between Model and view (Model tells the update to views(observer)),
and we also know there is a strategy pattern relationship between Model and Controller(Controller is a strategy).
and my question is : If i wanna use java lambda to make this MVC example better , I could only change the actionperformed parts in the View into lambda expression .
Am i able to do the lambda expression on the pattern relationship between Model & View or Controller & Model in this example("head first design patterns" page.532 to page.544) ?
Really need someone for help ~ And thank you so much indeed ! Let me know your opinion about this example :)
Aucun commentaire:
Enregistrer un commentaire