Validates that the specified argument character sequence is neither null, a length of zero (no characters), empty nor whitespace; otherwise throwing an exception. Validate.notBlank(myString); The message in the exception is "The validated character sequence is blank&q
(final T chars)
| 779 | * @since 3.0 |
| 780 | */ |
| 781 | public static <T extends CharSequence> T notBlank(final T chars) { |
| 782 | return notBlank(chars, DEFAULT_NOT_BLANK_EX_MESSAGE); |
| 783 | } |
| 784 | |
| 785 | /** |
| 786 | * Validates that the specified argument character sequence is not {@link StringUtils#isBlank(CharSequence) blank} (whitespaces, empty ({@code ""}) or |