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:SsnGeneratorSpec
Generates 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:
separator
in interfaceSsnGeneratorSpec
- Parameters:
separator
- for separating groups of digits, default isnull
(groups are not separated)- Returns:
- spec builder
-
nullable
SsnSpec nullable()Description copied from interface:SsnGeneratorSpec
Indicates thatnull
value can be generated.- Specified by:
nullable
in interfaceNullableGeneratorSpec<String>
- Specified by:
nullable
in interfaceSsnGeneratorSpec
- Specified by:
nullable
in interfaceValueSpec<String>
- Returns:
- spec builder
-