Package run.halo.gradle.utils
Class Assert
java.lang.Object
run.halo.gradle.utils.Assert
- Since:
- 2.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic voidAssert that an object is notnull.static voidstatic void
-
Constructor Details
-
Assert
public Assert()
-
-
Method Details
-
notNull
Assert that an object is notnull.Assert.notNull(clazz, "The class must not be null");
- Parameters:
object- the object to checkmessage- the exception message to use if the assertion fails- Throws:
IllegalArgumentException- if the object isnull
-
state
-
state
-
isTrue
-
isTrue
-