- java.lang.Object
-
- org.joox.selector.Assert
-
final class Assert extends java.lang.ObjectAssertion utility methods.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateAssert()Private CTOR.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidisTrue(boolean expression, java.lang.String message)Check if the specifiedexpressionistrue.static voidnotNull(java.lang.Object object, java.lang.String message)Check if the specifiedobjectisnull, and throw anIllegalArgumentExceptionif it is.
-
-
-
Method Detail
-
isTrue
public static void isTrue(boolean expression, java.lang.String message)Check if the specifiedexpressionistrue. If not throw anIllegalArgumentExceptionwith the specifiedmessage.- Parameters:
expression- The expression to check.message- The exception message if theexpressionisfalse.
-
notNull
public static void notNull(java.lang.Object object, java.lang.String message)Check if the specifiedobjectisnull, and throw anIllegalArgumentExceptionif it is.- Parameters:
object- The object to check.message- The exception message if theobjectisnull.
-
-