Skip to content

Instantly share code, notes, and snippets.

@jeffbowman
Created May 20, 2014 15:32
Show Gist options
  • Save jeffbowman/eb4bdb7c1fb37983dd63 to your computer and use it in GitHub Desktop.
Save jeffbowman/eb4bdb7c1fb37983dd63 to your computer and use it in GitHub Desktop.
ConfluexBlogFunctionExample2
Function<String , Integer> only3PositiveDigits = s -> s.matches("\\d{3}") ? new Integer(s) : -1;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment