Class CnpjValidator

java.lang.Object
io.github.multiform_validator.CnpjValidator

public class CnpjValidator extends Object
  • Method Details

    • cnpjIsValid

      public static boolean cnpjIsValid(String cnpj)
      Check if a CNPJ is valid
      Parameters:
      cnpj - the CNPJ to be validated
      Returns:
      true if the CNPJ is valid, false otherwise
      Throws:
      NullPointerException - if the CNPJ is null