Class CpfCnpjUtils

java.lang.Object
systextil.intg.dto.CpfCnpjUtils

public class CpfCnpjUtils extends Object
  • Constructor Details

    • CpfCnpjUtils

      public CpfCnpjUtils()
  • Method Details

    • concat

      public static String concat(Integer cgc9, Integer cgc4, Integer cgc2)
      Concatena o CGC9, CGC4 e CGC2 em um único número. E.x: 12345678901 (CPF) ou 12345678000199 (CNPJ)
    • formatHumanReadable

      public static String formatHumanReadable(systextil.CNPJ cnpj)
      Retorna o CNPJ formatado em formato legível para humanos. E.x: 12345678000199 (CNPJ) E.x: 12345678901 (CPF)
      Parameters:
      cnpj -
      Returns:
    • formatHumanReadable

      public static String formatHumanReadable(int cgc9, int cgc4, int cgc2)
      Formata o CPF ou CNPJ em formato legível para humanos. E.x: xxx-xxx-xxx-xx (CPF) ou xx.xxx.xxx/xxxx-xx (CNPJ)