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

Make LazyValue implement Supplier

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.14.0
    • Component/s: commons
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: