Class Checks
java.lang.Object
org.apache.ivy.util.Checks
Utility class used to perform some checks.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FilecheckAbsolute(File f, String fileName) static FilecheckAbsolute(String path, String fileName) static voidcheckNotNull(Object o, String objectName) Checks that an object is not null, and throw an exception if the object is null.
-
Method Details
-
checkNotNull
Checks that an object is not null, and throw an exception if the object is null.- Parameters:
o- the object to checkobjectName- the name of the object to check. This name will be used in the exception message.- Throws:
IllegalArgumentException- if the object is null
-
checkAbsolute
-
checkAbsolute
-