All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.devskiller.jfairy.producer.person.NationalIdentificationNumberProperties Maven / Gradle / Ivy

There is a newer version: 0.6.5
Show newest version
package com.devskiller.jfairy.producer.person;

import java.time.LocalDate;

public final class NationalIdentificationNumberProperties {

	private NationalIdentificationNumberProperties() {
	}

	public abstract static class Property {

		public abstract void apply(NationalIdentificationNumberProvider nationalIdentificationNumberProvider);
	}

	public static Property dateOfBirth(final LocalDate dateOfBirth) {
		return new Property() {
			@Override
			public void apply(NationalIdentificationNumberProvider nationalIdentificationNumberProvider) {
				nationalIdentificationNumberProvider.setIssueDate(dateOfBirth);
			}
		};
	}

	public static Property sex(final Person.Sex sex) {
		return new Property() {
			@Override
			public void apply(NationalIdentificationNumberProvider nationalIdentificationNumberProvider) {
				nationalIdentificationNumberProvider.setSex(sex);
			}
		};
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy