Class CpfValidator

java.lang.Object
io.github.multiform_validator.CpfValidator

public class CpfValidator extends Object
The CpfValidator class provides a utility method to validate CPF (Cadastro de Pessoas FĂ­sicas) numbers.
  • Method Details

    • cpfIsValid

      public static boolean cpfIsValid(String cpf)
      Validates a CPF number.
      Parameters:
      cpf - the CPF number to validate
      Returns:
      true if the CPF number is valid, false otherwise
      Throws:
      NullPointerException - if the CPF number is null