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/3fb1f4473d34ca4ca39a56c274dd7e5d to your computer and use it in GitHub Desktop.
Save benweidig/3fb1f4473d34ca4ca39a56c274dd7e5d to your computer and use it in GitHub Desktop.
public class BoundMethodRefs {
public Supplier<String> asLambda(String input) {
return () -> input.toLowerCase();
}
public Supplier<String> asMethodRef(String input) {
return input::toLowerCase;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment