Created
May 20, 2014 15:35
-
-
Save jeffbowman/062d19dc9c2174a1e36c to your computer and use it in GitHub Desktop.
ConfluexBlogSupplierExample1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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