Uploaded image for project: 'Commons JEXL'
  1. Commons JEXL
  2. JEXL-151

operators to manipulate j.u.Collection

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0
    • Fix Version/s: 3.0
    • Labels:
      None

      Description

      New operators to add or remove collection items to/from Collection. Operators can be named as += and -= respectively, or any other way. Operator += can be mapped to Collection.addAll(Collection c) if right argument is Collection or to Collection.add(Object o) otherwise. Operator -= can be mapped to Collection.removeAll(Collection c) if right argument is Collection or to Collection.remove(Object o) otherwise. Extend operators =~ (!) to support CollectionA = CollectionB usage, in which case it should map to B.containsAll(A) operation.

        Attachments

          Activity

            People

            • Assignee:
              henrib Henri Biestro
              Reporter:
              dmitri_blinov Dmitri Blinov
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: