Class Assert

java.lang.Object
org.joox.selector.Assert

final class Assert extends Object
Assertion utility methods.
  • Constructor Details

    • Assert

      private Assert()
      Private CTOR.
  • Method Details

    • isTrue

      public static void isTrue(boolean expression, String message)
      Check if the specified expression is true. If not throw an IllegalArgumentException with the specified message.
      Parameters:
      expression - The expression to check.
      message - The exception message if the expression is false.
    • notNull

      public static void notNull(Object object, String message)
      Check if the specified object is null, and throw an IllegalArgumentException if it is.
      Parameters:
      object - The object to check.
      message - The exception message if the object is null.