public abstract class Args
extends java.lang.Object
Constructor and Description |
---|
Args() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
notBlank(java.lang.String argument,
java.lang.String member)
Convenience to throw an
IllegalArgumentException if the associated argument is the
blank string as defined by org.apache.commons.lang3.StringUtils#isBlank(String) . |
static java.lang.String |
notEmpty(java.lang.String argument,
java.lang.String member)
Convenience to throw an
IllegalArgumentException if the associated argument is the
empty string (or null) as defined by org.apache.commons.lang3.StringUtils#isEmpty(String) . |
static <T> T |
notNull(T argument,
java.lang.String member)
Convenience to throw an
IllegalArgumentException if the associated argument null. |
public static <T> T notNull(T argument, java.lang.String member)
IllegalArgumentException
if the associated argument null.argument
- the argument.member
- the member name associated with this argument.public static java.lang.String notEmpty(java.lang.String argument, java.lang.String member)
IllegalArgumentException
if the associated argument is the
empty string (or null) as defined by org.apache.commons.lang3.StringUtils#isEmpty(String)
.argument
- the argument.member
- the member name associated with this argument.public static java.lang.String notBlank(java.lang.String argument, java.lang.String member)
IllegalArgumentException
if the associated argument is the
blank string as defined by org.apache.commons.lang3.StringUtils#isBlank(String)
.argument
- the argument.member
- the member name associated with this argument.