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

enhance checked collections to take a Predicate, not just a type

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P5 P5
    • None
    • None
    • core-libs

      Enhance the checked collections wrapper to take a Predicate that checks the validity of every element as its inserted, based on some logical condition of the predicate, as opposed to passing a Class<?> and having the only check be an instanceof check. The old type-checked collection wrapper could be rewritten as a special case of a general checked collections wrapper.

      This has also been referred to as a "validated" or "mediated" collections wrapper.

            Unassigned Unassigned
            smarks Stuart Marks
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: