Class Assert

java.lang.Object
fr.opensagres.xdocreport.core.utils.Assert

public abstract class Assert extends Object
Author:
pascalleclercq Inpired from org.springframework.util.Assert
  • Constructor Details

    • Assert

      public Assert()
  • Method Details

    • notNull

      public static void notNull(Object object, String message)
      Assert that an object is not null .
      Assert.notNull(clazz, "The class must not be null");
      Parameters:
      object - the object to check
      message - the exception message to use if the assertion fails
      Throws:
      IllegalArgumentException - if the object is null