Some of the functionality here is reproduced in Spring (and in other 3rd party JARs), but we need this to work at the client-side too and may opt not to such 3rd party products there. Regardless, this is trivial anyway! (This is copied from ph-commons-util.)
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | |
| public static void | ensureNotNull(Object
object to test value, String name to give to supplied Object when constructing Exception message. objectName)Checks that the given object is non-null, throwing an IllegalArgumentException if the check fails. |
| ConstraintUtilities | back to summary |
|---|---|
| public ConstraintUtilities() | |
| ensureNotNull | back to summary |
|---|---|
| public static void ensureNotNull(Object value) | |
| ensureNotNull | back to summary |
|---|---|
| public static void ensureNotNull(Object value, String objectName) Checks that the given object is non-null, throwing an IllegalArgumentException if the check fails. If the check succeeds then nothing happens.
| |