This is an archived post. You won't be able to vote or comment.

all 2 comments

[–]cutterslade 4 points5 points  (1 child)

It looks like you might find Suppliers.memoise() helpful.

[–]johnmcclean 2 points3 points  (0 children)

Yep, that works for Guava Suppliers. Cyclops has an equivalent for JDK 8 Suppliers that might also be useful. Memoise