Class RequireUtils

java.lang.Object
org.pdfsam.eventstudio.util.RequireUtils

public final class RequireUtils extends Object
Utility class with some helper method to check validity of input arguments
  • Constructor Details

    • RequireUtils

      private RequireUtils()
  • Method Details

    • requireNotBlank

      public static void requireNotBlank(String victim)
      Requires that the input string is not blank
      Parameters:
      victim - the string to be tested
      Throws:
      IllegalArgumentException - if the input is blank
    • requireNotNull

      public static void requireNotNull(Object victim)
      Requires that the input argument is not null
      Parameters:
      victim - the string to be tested
      Throws:
      IllegalArgumentException - if the input is null