Closed GoogleCodeExporter closed 9 years ago
Java 8 provides this as a new default method on Map, but I imagine this would
be unnecessarily complicated before Java 8, if you had to write the anonymous
Supplier instance -- it'd probably take more lines than just writing it the
old-fashioned way.
Original comment by wasserman.louis
on 20 Oct 2014 at 3:23
Given that migrating to Java 8 takes significant amount of time ; i was hoping
if it were to be implemented in guava
Original comment by venkates...@gmail.com
on 20 Oct 2014 at 4:40
As I was attempting to say, Guava could only really do this by letting you use
an anonymous class, since you can't use lambdas until Java 8, and the anonymous
class would be so verbose that your code would be shorter if you wrote it the
"normal way."
Original comment by lowas...@google.com
on 20 Oct 2014 at 4:41
OK got it. thanks for clarification
Original comment by venkates...@gmail.com
on 20 Oct 2014 at 4:42
This issue has been migrated to GitHub.
It can be found at https://github.com/google/guava/issues/<issue id>
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:08
Original comment by cgdecker@google.com
on 1 Nov 2014 at 4:17
Original comment by cgdecker@google.com
on 3 Nov 2014 at 9:07
Original issue reported on code.google.com by
venkates...@gmail.com
on 20 Oct 2014 at 3:22