List of utility methods to do String Empty Check
boolean | isNotNull(String str) is Not Null return (str != null && !"".equalsIgnoreCase(str.trim())); |
String | stringBlank(String s) string Blank s = stringNull(s); if (s == null) s = ""; return s; |
String | stringNull(String s) string Null if (s != null) { s = s.trim(); if (s.equals("") || s.equalsIgnoreCase("null")) s = ""; return s; |