@Test @SuppressWarnings("ConstantConditions") public void testNonEmpty() { String string = null; assertFalse(StringUtils.nonEmpty(string)); string = ""; assertFalse(StringUtils.nonEmpty(string)); string = "Hello"; assertTrue(StringUtils.nonEmpty(string)); List<String> list = null; assertFalse(StringUtils.nonEmpty(list)); list = new ArrayList<>(); assertFalse(StringUtils.nonEmpty(list)); list.add("hello"); assertTrue(StringUtils.nonEmpty(list)); }
public static boolean nonEmpty(String value) { return !isEmpty(value); }
StringUtils { public static boolean nonEmpty(String value) { return !isEmpty(value); } }
StringUtils { public static boolean nonEmpty(String value) { return !isEmpty(value); } private  StringUtils(); }
StringUtils { public static boolean nonEmpty(String value) { return !isEmpty(value); } private  StringUtils(); static String getStringForList(List<? extends Object> objects); static String getStringForList(List<? extends Object> objects, final String delimiter); static String urlEncode(String s); static String urlDecode(String s); static String encode(String s); static String decode(String s); static boolean isEmpty(String value); static boolean nonEmpty(String value); @SuppressWarnings("rawtypes") static boolean isEmpty(Collection collection); @SuppressWarnings("rawtypes") static boolean nonEmpty(Collection collection); static String createDataTypeDisplayName(String dataType); static void setURL(URL u); }
StringUtils { public static boolean nonEmpty(String value) { return !isEmpty(value); } private  StringUtils(); static String getStringForList(List<? extends Object> objects); static String getStringForList(List<? extends Object> objects, final String delimiter); static String urlEncode(String s); static String urlDecode(String s); static String encode(String s); static String decode(String s); static boolean isEmpty(String value); static boolean nonEmpty(String value); @SuppressWarnings("rawtypes") static boolean isEmpty(Collection collection); @SuppressWarnings("rawtypes") static boolean nonEmpty(Collection collection); static String createDataTypeDisplayName(String dataType); static void setURL(URL u); static final String ALPHA_NUM_REGEXP; static final String ALPHA_NUM_UNDERSCORE_DOT_REGEXP; static final String ALPHA_NUM_SPACE_REGEXP; static final RegExp EXPRESSION; }