We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 298c05f commit 6b35d99Copy full SHA for 6b35d99
core/src/main/java/fj/function/Strings.java
@@ -14,6 +14,16 @@ private Strings() {
14
throw new UnsupportedOperationException();
15
}
16
17
+ /**
18
+ * This function checks if a given String is neither <code>null</code> nor empty.
19
+ */
20
+ public static final F<String, Boolean> isNotNullOrEmpty = new F<String, Boolean>() {
21
+ @Override
22
+ public Boolean f(final String a) {
23
+ return a != null && a.length() > 0;
24
+ }
25
+ };
26
+
27
/**
28
* A curried version of {@link String#isEmpty()}.
29
*/
0 commit comments