public class PlNationalIdentificationNumberProvider extends Object implements NationalIdentificationNumberProvider
Universal Electronic System for Registration of the Population) More info: http://en.wikipedia.org/wiki/PESEL
Constructor and Description |
---|
PlNationalIdentificationNumberProvider(DateProducer dateProducer,
BaseProducer baseProducer,
NationalIdentificationNumberProperties.Property... properties) |
Modifier and Type | Method and Description |
---|---|
NationalIdentificationNumber |
get() |
static boolean |
isValid(String nationalIdentificationNumber) |
void |
setIssueDate(LocalDate issueDate) |
void |
setSex(Person.Sex sex) |
void |
with(NationalIdentificationNumberProperties.Property[] properties) |
@Inject public PlNationalIdentificationNumberProvider(DateProducer dateProducer, BaseProducer baseProducer, NationalIdentificationNumberProperties.Property... properties)
public void with(NationalIdentificationNumberProperties.Property[] properties)
public NationalIdentificationNumber get()
get
in interface NationalIdentificationNumberProvider
get
in interface javax.inject.Provider<NationalIdentificationNumber>
public void setIssueDate(LocalDate issueDate)
setIssueDate
in interface NationalIdentificationNumberProvider
public void setSex(Person.Sex sex)
setSex
in interface NationalIdentificationNumberProvider
public static boolean isValid(String nationalIdentificationNumber)
nationalIdentificationNumber
- National Identification Number (PESEL)Copyright © 2020. All rights reserved.