org.apache.ivy.util

Class Checks

public final class Checks extends Object

Utility class used to perform some checks.
Method Summary
static 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 Detail

checkAbsolute

public static File checkAbsolute(File f, String fileName)

checkAbsolute

public static File checkAbsolute(String path, String fileName)

checkNotNull

public static void checkNotNull(Object o, String objectName)
Checks that an object is not null, and throw an exception if the object is null.

Parameters: o the object to check objectName the name of the object to check. This name will be used in the exception message.

Throws: IllegalArgumentException if the object is null