Created
September 19, 2022 16:18
-
-
Save benweidig/5a6c81d939aa0ce9d5ca4aa8b9e00d2e 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
// EXCERPT OF java.lang.Integer | |
class Integer extends Number { | |
public static String toHexString(int i) { | |
// .. | |
} | |
} | |
// LAMBDA EXPRESSION | |
Function<Integer, String> asLambda = i -> Integer.toHexString(i); | |
// STATIC METHOD REFERENCE | |
Function<Integer, String> asRef = Integer::tohexString; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment