public class ValidationUtils extends Object
| Constructor and Description |
|---|
ValidationUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
assertNotNull(T object,
String fieldName)
Asserts that the given object is non-null and returns it.
|
public static <T> T assertNotNull(T object,
String fieldName)
throws IllegalStateException
object - Object to assert onfieldName - Field name to display in exception message if nullIllegalStateException - if object was nullCopyright © 2015. All rights reserved.