
org.jfairy.producer.person.locale.pl.PeselProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jfairy Show documentation
Show all versions of jfairy Show documentation
jFairy - Java fake data generator
The newest version!
package org.jfairy.producer.person.locale.pl;
import org.jfairy.producer.person.Person;
import org.joda.time.DateTime;
public final class PeselProperties {
private PeselProperties() {
}
public abstract static class Property {
public abstract void apply(PeselProvider peselProvider);
}
public static Property dateOfBirth(final DateTime dateOfBirth) {
return new Property() {
@Override
public void apply(PeselProvider peselProvider) {
peselProvider.setIssueDate(dateOfBirth);
}
};
}
public static Property sex(final Person.Sex sex) {
return new Property() {
@Override
public void apply(PeselProvider peselProvider) {
peselProvider.setSex(sex);
}
};
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy