Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8287834

Add SymbolLookup::or method

XMLWordPrintable

      Add a SymbolLookup::or method to support lookup chaining.

          SymbolLookup combined = loookupA.or(lookupB);

      This would be a convenience method for the following:

          SymbolLookup combined = name -> loookupA.lookup(name).or(() -> lookupB.lookup(name));

      With a little more prominence in the API as well.

            mcimadamore Maurizio Cimadamore
            jvernee Jorn Vernee
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: