Interface SinAsGeneratorSpec
- All Superinterfaces:
AsGeneratorSpec<String>
,GeneratorSpec<String>
,NullableGeneratorSpec<String>
,SinGeneratorSpec
Spec for generating
Canadian Social Insurance Number (SIN) that supports
AsGeneratorSpec
.- Since:
- 3.1.0
-
Method Summary
Modifier and TypeMethodDescriptionnullable()
Indicates thatnull
value can be generated.Generates a permanent card number with the first digit1-7
, inclusive.Separator for groups of three digits.Generates a temporary card number with the first digit9
.Methods inherited from interface org.instancio.generator.specs.AsGeneratorSpec
as, asString
-
Method Details
-
permanent
SinAsGeneratorSpec permanent()Description copied from interface:SinGeneratorSpec
Generates a permanent card number with the first digit1-7
, inclusive.- Specified by:
permanent
in interfaceSinGeneratorSpec
- Returns:
- spec builder
-
temporary
SinAsGeneratorSpec temporary()Description copied from interface:SinGeneratorSpec
Generates a temporary card number with the first digit9
.- Specified by:
temporary
in interfaceSinGeneratorSpec
- Returns:
- spec builder
-
separator
Description copied from interface:SinGeneratorSpec
Separator for groups of three digits.- Specified by:
separator
in interfaceSinGeneratorSpec
- Parameters:
separator
- for separating groups of three digits, default isnull
(groups are not separated)- Returns:
- spec builder
-
nullable
SinAsGeneratorSpec nullable()Description copied from interface:SinGeneratorSpec
Indicates thatnull
value can be generated.- Specified by:
nullable
in interfaceNullableGeneratorSpec<String>
- Specified by:
nullable
in interfaceSinGeneratorSpec
- Returns:
- spec builder
-