Interface SsnGeneratorSpec
- All Superinterfaces:
GeneratorSpec<String>,NullableGeneratorSpec<String>
- All Known Subinterfaces:
SsnSpec
Spec for generating
US Social Security Number (SSN).
- Since:
- 3.1.0
-
Method Summary
Modifier and TypeMethodDescriptionnullable()Indicates thatnullvalue can be generated.Generates an SSN formatted with the given separator.
-
Method Details
-
separator
Generates an SSN formatted with the given separator. For example, if the separator is'-', the SSN will be formatted as follows:111-11-1111.- Parameters:
separator- for separating groups of digits, default isnull(groups are not separated)- Returns:
- spec builder
- Since:
- 3.1.0
-
nullable
SsnGeneratorSpec nullable()Indicates thatnullvalue can be generated.- Specified by:
nullablein interfaceNullableGeneratorSpec<String>- Returns:
- spec builder
- Since:
- 3.1.0
-