Created
September 19, 2022 16:24
-
-
Save benweidig/3fb1f4473d34ca4ca39a56c274dd7e5d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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