maidh91 / guava-libraries

Automatically exported from code.google.com/p/guava-libraries
Apache License 2.0
0 stars 0 forks source link

Supplier use-cases #473

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I don't really understand the use-cases of the interface supplier.I think 
memoize in Suppliers has some useful application ,but how to use these things i 
can't figure out.Please help with some code samples.

Original issue reported on code.google.com by emilcha...@gmail.com on 9 Nov 2010 at 11:26

GoogleCodeExporter commented 9 years ago
You can see an example of how we use supplier here : 
http://javawayoflife.blogspot.com/2010/06/unit-test-and-new-date.html
Hope it helps.

Original comment by amer...@gmail.com on 9 Nov 2010 at 1:03

GoogleCodeExporter commented 9 years ago
This is not an issue and should be closed. This type of query should be on 
something like StackOverflow where the answer could possibly help someone with 
the same question.

Original comment by gpampara@gmail.com on 9 Nov 2010 at 3:27

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
i did ask about it on stackoverflow. check this link: 
http://stackoverflow.com/questions/4014589/google-guava-supplier-example. But i 
didn't get any satisfactory answer's thats why i decided to ask the one's who 
coded this.

Original comment by emilcha...@gmail.com on 9 Nov 2010 at 3:57

GoogleCodeExporter commented 9 years ago
Yep, stackoverflow is the perfect place for this sort of discussion.  It looks 
like Jared gave the team's reason for adding Supplier to the library.

Original comment by boppenh...@google.com on 14 Nov 2010 at 7:32

GoogleCodeExporter commented 9 years ago
This issue has been migrated to GitHub.

It can be found at https://github.com/google/guava/issues/<id>

Original comment by cgdecker@google.com on 1 Nov 2014 at 4:15

GoogleCodeExporter commented 9 years ago

Original comment by cgdecker@google.com on 3 Nov 2014 at 9:09