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/92433faf74938ca971ab4f3120e6bb1c to your computer and use it in GitHub Desktop.
Save benweidig/92433faf74938ca971ab4f3120e6bb1c to your computer and use it in GitHub Desktop.
// EXCERPT FROM java.lang.String
class String implements ... {
String toLowerCase() {
// ...
}
}
// AS LAMBDA EXPRESSION
Function<String, String> toLowerCaseLambda = $ -> $.toLowerCase();
// AS METHOD REFERENCE
Function<String, String> toLowerCaseRef = String::toLowerCase;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment