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