Interface SsnSpec

All Superinterfaces:
GeneratorSpec<String>, NullableGeneratorSpec<String>, SsnGeneratorSpec, ValueSpec<String>

public interface SsnSpec extends SsnGeneratorSpec, ValueSpec<String>
Spec for generating US Social Security Number (SSN).
Since:
3.1.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Indicates that null value can be generated.
    separator(String separator)
    Generates an SSN formatted with the given separator.

    Methods inherited from interface org.instancio.generator.ValueSpec

    get, list, map, stream, toModel