public final class ConstraintUtilities
extends java.lang.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.)
| 构造器和说明 |
|---|
ConstraintUtilities() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
ensureNotNull(java.lang.Object value) |
static void |
ensureNotNull(java.lang.Object value,
java.lang.String objectName)
Checks that the given object is non-null, throwing an
IllegalArgumentException if the check fails.
|
public static void ensureNotNull(java.lang.Object value)
public static void ensureNotNull(java.lang.Object value,
java.lang.String objectName)
value - object to testobjectName - name to give to supplied Object when constructing Exception message.java.lang.IllegalArgumentException - if an error occurs.