public final class ArgumentCheck extends Object
| Constructor and Description |
|---|
ArgumentCheck() |
| Modifier and Type | Method and Description |
|---|---|
static void |
checkMandatoryObject(Object object,
String argumentName)
Checks that the parameter with the given name has content i.e. it's not null
|
static void |
checkMandatoryString(String argumentValue,
String argumentName)
Checks that the string parameter with the given name is not null or empty
|
static void |
checkNumberPositive(long number,
String argumentName)
Checks that the number is positive.
|
public static final void checkMandatoryObject(Object object, String argumentName)
argumentName - (String, required) Name of parameter to checkobject - Value of the parameter to checkpublic static final void checkMandatoryString(String argumentValue, String argumentName)
argumentName - (String, required) Name of parameter to validateargumentValue - (String) Value of the parameter to validatepublic static void checkNumberPositive(long number,
String argumentName)
number - (long) value to validateargumentName - (String, required) name of argument to validateCopyright © 2015. All rights reserved.