|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.joda.util.Validation
Validation utility. Validation is designed to be used in a similar way to the assert functionality, but when the check needs to be left in at runtime. This class is modelled after JUnit.
Method Summary | |
static void |
isEquals(java.lang.Object expected,
java.lang.Object actual,
java.lang.String message)
Validate for values equal |
static void |
isNotNull(java.lang.Object param,
java.lang.String paramName)
Validate that the parameter is not null. |
static void |
isTrue(boolean arg,
java.lang.String message)
Validate for true boolean. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static void isNotNull(java.lang.Object param, java.lang.String paramName)
param
- the value to checkparamName
- the name of the parameter. The error message will be built
by adding ' must not be null'.public static void isTrue(boolean arg, java.lang.String message)
arg
- the boolean to checkmessage
- the error messagepublic static void isEquals(java.lang.Object expected, java.lang.Object actual, java.lang.String message)
message
- the error message
|
Joda System API | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |