Interface CnpjGeneratorSpec
- All Superinterfaces:
GeneratorSpec<String>,NullableGeneratorSpec<String>
- All Known Subinterfaces:
CnpjSpec
Spec for generating
Brazilian 'Cadastro Nacional de Pessoas JurÃdicas' (CNPJ).
- Since:
- 5.0.0
-
Method Summary
Modifier and TypeMethodDescriptionFormat the CNPJ output.nullable()Indicates thatnullvalue can be generated.
-
Method Details
-
formatted
CnpjGeneratorSpec formatted()Format the CNPJ output. By default, the output is not formatted:'123456780000199'In case the formatted is called, the result will be formatted as follows:'12.345.678/00001-99'- Returns:
- spec builder
- Since:
- 5.0.0
-
nullable
CnpjGeneratorSpec nullable()Indicates thatnullvalue can be generated.- Specified by:
nullablein interfaceNullableGeneratorSpec<String>- Returns:
- spec builder
- Since:
- 5.0.0
-