public final class Checks
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.io.File |
checkAbsolute(java.io.File f,
java.lang.String fileName) |
static java.io.File |
checkAbsolute(java.lang.String path,
java.lang.String fileName) |
static void |
checkNotNull(java.lang.Object o,
java.lang.String objectName)
Checks that an object is not null, and throw an exception if the object is null.
|
public static void checkNotNull(java.lang.Object o,
java.lang.String objectName)
o - the object to checkobjectName - the name of the object to check. This name will be used in the exception message.java.lang.IllegalArgumentException - if the object is nullpublic static java.io.File checkAbsolute(java.io.File f,
java.lang.String fileName)
public static java.io.File checkAbsolute(java.lang.String path,
java.lang.String fileName)