[JEP 302] Method references with parameters
Chris
seahen123 at gmail.com
Sun Aug 26 22:45:59 UTC 2018
I have a suggestion for JEP 302, while lambdas are being worked on: method
references with parameters as a shorthand. For example,
Integer::valueOf(2000) would be synonymous with () -> Integer.valueOf(2000)
and byte[]::new(ARRAY_SIZE) with () -> new byte[ARRAY_SIZE].
I'm guessing there's probably some reason this isn't already in the
proposal, but can someone please explain it?
Sincerely,
Chris Hennick
More information about the platform-jep-discuss
mailing list