SAM interface/class figures [Re: Preparing for the 0.2 draft]
Neal Gafter
neal at gafter.com
Wed Feb 3 12:25:42 PST 2010
On Wed, Feb 3, 2010 at 12:04 PM, Alex Buckley <Alex.Buckley at sun.com> wrote:
> What is really interesting is how many of those 12597 anon.classes extend a
> SAM class v. implement a SAM interface.
I don't think that is precise enough. Those statistics are only
interesting if restricted to anonymous inner classes that implement a
SAM type (as you say), AND define a single method, AND have no fields,
AND pass no constructor arguments, AND are not generic methods, etc.
The rest of them wouldn't be candidates for lambda expressions anyway.
That's why I generated the statistics I did and also provided the
code for others to do the same.
More information about the lambda-dev
mailing list