Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benweidig/92b6f78d98917f59f155b4546d286ffa to your computer and use it in GitHub Desktop.
Save benweidig/92b6f78d98917f59f155b4546d286ffa to your computer and use it in GitHub Desktop.
// AS LAMBDA EXPRESSION
Function<String, Locale> newLocaleLambda = language -> new Locale(language);
// AS METHOD REFERENCE
Function<String, Locale> newLocaleMethodRef = Locale::new;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment