Skip to content

Instantly share code, notes, and snippets.

@jeffbowman
Created May 20, 2014 15:35
Show Gist options
  • Save jeffbowman/062d19dc9c2174a1e36c to your computer and use it in GitHub Desktop.
Save jeffbowman/062d19dc9c2174a1e36c to your computer and use it in GitHub Desktop.
ConfluexBlogSupplierExample1
Supplier<Integer> alwaysOne = () -> 1;
alwaysOne.get(); // --> 1
alwaysOne.get(); // --> 1, again
alwaysOne.get(); // --> still 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment