Package com.acrolinx.sidebar.utils
Class Validate
java.lang.Object
com.acrolinx.sidebar.utils.Validate
A utility class containing only static methods to quickly check constructor and method arguments.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidisDirectory(Path directoryPath, String variableName) static voidisRegularFile(Path filePath, String variableName) static void
-
Method Details
-
isDirectory
- Throws:
IllegalArgumentException- ifdirectoryPathisnullornot a directory.
-
isRegularFile
- Throws:
IllegalArgumentException- iffilePathisnullornot a regular file.
-
notNull
- Throws:
IllegalArgumentException- ifobjectisnull.
-