Class Validator


  • public final class Validator
    extends Object
    Validates user provided parameters are not null if they are required.
    • Method Detail

      • validate

        public static void validate​(Object parameter)
        Validates a user provided required parameter to be not null. An IllegalArgumentException is thrown if a property fails the validation.
        Parameters:
        parameter - the parameter to validate
        Throws:
        IllegalArgumentException - thrown when the Validator determines the argument is invalid