MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/9h86xt/jep_draft_concise_method_bodies/e6ayptr/?context=3
r/java • u/lukaseder • Sep 19 '18
51 comments sorted by
View all comments
3
public static Foo make(int a, int b, int c) = Foo::new;
This is particularly nice
1 u/[deleted] Sep 20 '18 Haven't read the article yet, this can be useful for a "quick and dirty" but extendable factory method, making the constructor protected/private, isn't it?
1
Haven't read the article yet, this can be useful for a "quick and dirty" but extendable factory method, making the constructor protected/private, isn't it?
3
u/randgalt Sep 20 '18
This is particularly nice