Hacker News new | ask | show | jobs
by RivieraKid 3758 days ago
This has been possible for some time with retrolambda.
1 comments

In fact, they've implemented lambdas exactly like retrolambda does via anonymous classes.
So this is just another way to blow up your dex method count?
disclaimer: I work on Android dev tools

It depends. For example, let's compare providing an event listener via a lambda vs an anonymous inner class. Using the lambda will increase your method count by 1. However, if you're accessing class member variables, it will reduce the method count for each variable you use, because it's added as a method of the containing class and doesn't need to generate accessors.