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/5a6c81d939aa0ce9d5ca4aa8b9e00d2e to your computer and use it in GitHub Desktop.
Save benweidig/5a6c81d939aa0ce9d5ca4aa8b9e00d2e to your computer and use it in GitHub Desktop.
// 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