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

java.util streams "filterNot(predicate)" for collections

    Details

      Description

      A DESCRIPTION OF THE REQUEST :
      filterNot api method for java streams

      JUSTIFICATION :
      filterNot can improve code readability and reduce excessiveness.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      strings.stream().filterNot(String::isEmpty)
      ACTUAL -
      strings.stream().filter((str) -> !str.isEmpty())

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                psandoz Paul Sandoz (Inactive)
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: