public class ValidateUtil extends Object
| Constructor and Description |
|---|
ValidateUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
exactlyOneNotNullOrThrowInvalidRequestException(Object[] theObjects,
String theMessage) |
static void |
isGreaterThan(long theValue,
long theMinimum,
String theMessage)
Throws
IllegalArgumentException if theValue is <= theMinimum |
static void |
isGreaterThanOrEqualTo(long theValue,
long theMinimum,
String theMessage)
Throws
IllegalArgumentException if theValue is < theMinimum |
static void |
isNotBlankOrThrowIllegalArgument(String theString,
String theMessage) |
static void |
isNotBlankOrThrowInvalidRequest(String theString,
String theMessage) |
static void |
isNotBlankOrThrowUnprocessableEntity(String theString,
String theMessage) |
static void |
isNotNullOrThrowUnprocessableEntity(Object theObject,
String theMessage,
Object... theValues) |
static void |
isNotTooLongOrThrowIllegalArgument(String theString,
int theMaxLength,
String theMessage) |
static void |
isTrueOrThrowInvalidRequest(boolean theSuccess,
String theMessage,
Object... theValues) |
public ValidateUtil()
public static void isGreaterThan(long theValue, long theMinimum, String theMessage)
IllegalArgumentException if theValue is <= theMinimumpublic static void isGreaterThanOrEqualTo(long theValue, long theMinimum, String theMessage)
IllegalArgumentException if theValue is < theMinimumpublic static void isNotBlankOrThrowIllegalArgument(String theString, String theMessage)
public static void isNotBlankOrThrowInvalidRequest(String theString, String theMessage)
public static void isNotBlankOrThrowUnprocessableEntity(String theString, String theMessage)
public static void isNotNullOrThrowUnprocessableEntity(Object theObject, String theMessage, Object... theValues)
public static void isNotTooLongOrThrowIllegalArgument(String theString, int theMaxLength, String theMessage)
public static void isTrueOrThrowInvalidRequest(boolean theSuccess, String theMessage, Object... theValues)
public static void exactlyOneNotNullOrThrowInvalidRequestException(Object[] theObjects, String theMessage)
Copyright © 2014–2019 University Health Network. All rights reserved.