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

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

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: