Interface SinSpec
- All Superinterfaces:
AsGeneratorSpec<String>,GeneratorSpec<String>,NullableGeneratorSpec<String>,SinGeneratorSpec,Supplier<String>,ValueSpec<String>
Spec for generating
Canadian Social Insurance Number (SIN).
- Since:
- 3.1.0
-
Method Summary
Modifier and TypeMethodDescriptionnullable()Indicates thatnullvalue 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
SinSpec permanent()Description copied from interface:SinGeneratorSpecGenerates a permanent card number with the first digit1-7, inclusive.- Specified by:
permanentin interfaceSinGeneratorSpec- Returns:
- spec builder
-
temporary
SinSpec temporary()Description copied from interface:SinGeneratorSpecGenerates a temporary card number with the first digit9.- Specified by:
temporaryin interfaceSinGeneratorSpec- Returns:
- spec builder
-
separator
Description copied from interface:SinGeneratorSpecSeparator for groups of three digits.- Specified by:
separatorin interfaceSinGeneratorSpec- Parameters:
separator- for separating groups of three digits, default isnull(groups are not separated)- Returns:
- spec builder
-
nullable
SinSpec nullable()Description copied from interface:SinGeneratorSpecIndicates thatnullvalue can be generated.- Specified by:
nullablein interfaceNullableGeneratorSpec<String>- Specified by:
nullablein interfaceSinGeneratorSpec- Specified by:
nullablein interfaceValueSpec<String>- Returns:
- spec builder
-