MCPcopy Create free account
hub / github.com/apache/commons-lang / notBlank

Method notBlank

src/main/java/org/apache/commons/lang3/Validate.java:781–783  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Calls 4

toSupplierMethod · 0.95
isBlankMethod · 0.95
getMessageMethod · 0.95
requireNonNullMethod · 0.45