Component.queryAll() shall return Iterable<Component> instead of List<Component> for better performance

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Normal
    • 6.0.1
    • Affects Version/s: None
    • Component/s: None
    • None

      In other words, queryAll shall not tranverse the whole component tree, until the caller iterates throught the returned collection. Thus, it can be used to implement filter and other function effectively. For example,

      for (Component c in comp.queryAll("textbox"))
        if (matches(c)) {
          //do something
          break; //strop the tree  traversal.
        }
      

            Assignee:
            Unassigned
            Reporter:
            tomyeh
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m