Add a static method String::isNullOrBlank

XMLWordPrintable

    • generic
    • generic

      A DESCRIPTION OF THE PROBLEM :
      Add a new static method in the class java.lang.String that checks is null or empty.
      This is a common check and is spread across many codebases.

      An example of implementation cloud be something like:
      ```
      public final class String {
          public static boolean isNullOrEmpty(String stringToCheck){
              return stringToCheck == null || stringToCheck.isBlank();
          }
      }
      ```

      One example of usage:
      ```
      Stream.of("String one", null, "").filter(Predicate.not(String::isNullOrBlank)).toArray();
      ```


            Assignee:
            Unassigned
            Reporter:
            Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: