-
Type:
Enhancement
-
Resolution: Unresolved
-
Priority:
P4
-
None
-
Affects Version/s: None
-
Component/s: core-libs
-
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();
```
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();
```