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/d60d0efe6b97c7b76378a34e03f612e3 to your computer and use it in GitHub Desktop.
Save benweidig/d60d0efe6b97c7b76378a34e03f612e3 to your computer and use it in GitHub Desktop.
public class ConstructorRefs {
public Function<String, Locale> asLambda() {
return $ -> new Locale($);
}
public Function<String, Locale> asMethodRef() {
return Locale::new;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment