Java Utililty Methods Assert Not Null

List of utility methods to do Assert Not Null

Description

The list of methods to do Assert Not Null are organized into topic(s).

Method

voidassertStringNotNullOrEmpty_ShorterThan256(String str, String name)

Check if the string is null or empty, and assert it is no longer than 255.

assertStringNotNullOrEmpty(str, name);
if (str.length() > STRING_MAXLEN) {
    throw new IllegalArgumentException(name + " must not be longer than 255");