public final class ConstraintUtilities extends Object
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.)
| Constructor and Description |
|---|
ConstraintUtilities() |
| Modifier and Type | Method and Description |
|---|---|
static void |
ensureNotNull(Object value) |
static void |
ensureNotNull(Object value,
String objectName)
Checks that the given object is non-null, throwing an
IllegalArgumentException if the check fails.
|
public static void ensureNotNull(Object value)
public static void ensureNotNull(Object value, String objectName)
value - object to testobjectName - name to give to supplied Object when constructing Exception message.IllegalArgumentException - if an error occurs.Copyright © 2008–2026 The University of Edinburgh. All rights reserved.