public class ValidationUtils extends Object
| Constructor and Description | 
|---|
| ValidationUtils() | 
| Modifier and Type | Method and Description | 
|---|---|
| static void | assertAllAreNull(String messageIfNull,
                Object... objects)Asserts that all of the objects are null. | 
| 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 IllegalArgumentException
object - Object to assert onfieldName - Field name to display in exception message if nullIllegalArgumentException - If object was nullpublic static void assertAllAreNull(String messageIfNull, Object... objects) throws IllegalArgumentException
IllegalArgumentException - if any object provided was NOT null.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.