250251252253254255256257
public static void notContains(String textToSearch, String substring, String message) { if (contains(textToSearch, substring)) { if (!hasText(message)) { message = "assert.notContains"; } throw new BusinessException(getMessage(message)); } }
268269270271272273274275
public static void notEmpty(Object[] array, String message) { if (!notEmpty(array)) { if (!hasText(message)) { message = "assert.notEmpty"; } throw new BusinessException(getMessage(message)); } }
354355356357358359360361
public static void notNull(Object[] array, String message) { if (!notNull(array)) { if (!hasText(message)) { message = "assert.notNull"; } throw new BusinessException(getMessage(message)); } }
372373374375376377378379
public static void notEmpty(Collection<?> collection, String message) { if (collection == null || collection.isEmpty()) { if (!hasText(message)) { message = "assert.notEmpty"; } throw new BusinessException(getMessage(message)); } }
391392393394395396397398
public static void notEmpty(Map<?, ?> map, String message) { if (!notEmpty(map.entrySet().toArray())) { if (!hasText(message)) { message = "assert.notEmpty"; } throw new BusinessException(getMessage(message)); } }