Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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