Class Checks

java.lang.Object
org.apache.ivy.util.Checks

public final class Checks extends Object
Utility class used to perform some checks.
  • Method Details

    • 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
    • checkAbsolute

      public static File checkAbsolute(File f, String fileName)
    • checkAbsolute

      public static File checkAbsolute(String path, String fileName)