Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-8283

Make LazyValue implement Supplier

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 1.14.0
    • commons
    • None

    Description

      Proposal is to have LazyValue<T> implement java.util.function.Supplier<T>.
      This can be seen as the missing jdk memoizing Supplier (produces a value once and reuses it), very similar to com.google.common.base.Suppliers.memoize.

      Attachments

        Activity

          People

            stillalex Alex Deparvu
            stillalex Alex Deparvu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: