Class ToolsSupport
java.lang.Object
rife.bld.extension.tools.internal.ToolsSupport
Internal support utilities shared across tool classes.
This class is not part of the public API and may change without notice.
- Since:
- 1.0
- Author:
- Erik C. Thauvin
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidrequireContext(String context) Validates that a context string is notnull, empty, or whitespace-only.static voidrequireMessage(String message) Validates that a message string is notnull, empty, or whitespace-only.
-
Method Details
-
requireContext
Validates that a context string is notnull, empty, or whitespace-only.- Parameters:
context- the context string to validate- Throws:
NullPointerException- ifcontextisnullIllegalArgumentException- ifcontextis empty, or whitespace-only
-
requireMessage
Validates that a message string is notnull, empty, or whitespace-only.- Parameters:
message- the message string to validate- Throws:
NullPointerException- ifmessageisnullIllegalArgumentException- ifmessageis empty, or whitespace-only
-