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 thatnull
value 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 thatnull
value can be generated.- Specified by:
nullable
in interfaceNullableGeneratorSpec<String>
- Returns:
- spec builder
- Since:
- 3.1.0
-