Class RequireUtils


  • public final class RequireUtils
    extends Object
    Utility class with some helper method to check validity of input arguments
    Author:
    Andrea Vacondio
    • Method Detail

      • requireNotBlank

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

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