Wednesday, October 3, 2018

Setters, Method Handles, and Java 11

When working the getters and setters in Java 8, it is natural to want to use BiConsumerand the Function interface instead of the direct method reflection (usually for greater performance).

I'm not alone in this desire, and there is even an article on DZone that discusses this approach. There are some open source projects (for example, here or here) that use similar methods to implement this functionality.



from DZone.com Feed https://ift.tt/2OxzbVk

No comments:

Post a Comment