public final class ValueAsserter extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
assertNotNull(Object obj)
Assert the input value is not null.
|
static void |
assertPrintable(String value)
Asserts that string contains only printable ASCII characters, between 32 and 126.
|
static void |
assertPrintableOrReserved(String value,
char[] reservedChars)
Asserts that string contains only printable ASCII characters or reserved characters.
|
static void |
assertSipMethod(String method)
Validate the input method name.
|
public static void assertNotNull(Object obj)
obj - Input value.public static void assertSipMethod(String method)
method - Sip method name.public static void assertPrintable(String value)
value - The input string.public static void assertPrintableOrReserved(String value, char[] reservedChars)
value - The String to be validated.reservedChars - Reserved characters.