
net.datafaker.providers.base.DrivingLicense Maven / Gradle / Ivy
package net.datafaker.providers.base;
import java.util.Locale;
/**
* @since 1.5.0
*/
public class DrivingLicense extends AbstractProvider {
protected DrivingLicense(BaseProviders faker) {
super(faker);
}
public String drivingLicense(String stateAbbreviation) {
return faker.bothify(faker.resolve("driving_license.usa." + stateAbbreviation)).toUpperCase(Locale.ROOT);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy