-
Terminally Deprecated ElementsElementDescriptionUse
BaseProviders.timeAndDate()instead.since 2.2.0. For removal in 3.0.0 version. UseMoney.currencyCode()instead.since 2.2.0. For removal in 3.0.0 version. UseMoney.currency()instead.UseTimeAndDateinstead.since 2.2.0. For removal in 3.0.0 version. UseStock.nsdqSymbol()instead.since 2.2.0. For removal in 3.0.0 version. UseStock.nyseSymbol()instead.since 2.2.0. For removal in 3.0.0 version. UseStock.exchanges()instead.since 2.5.0. UseCredentials.password()instead.since 2.5.0. UseCredentials.password(boolean)instead.since 2.5.0. UseCredentials.password(int, int)instead.since 2.5.0. UseCredentials.password(int, int, boolean)instead.since 2.5.0. UseCredentials.password(int, int, boolean, boolean)instead.since 2.5.0. UseCredentials.password(int, int, boolean, boolean, boolean)instead.Since 2.5.0. UseCredentials.username()instead.since 2.3.0. This faker is deprecated due to migration to healthcare-specific aggregated intoHealthcareFakerfakers with similar methods.since 2.3.0. UseDisease.icd10()instead.since 2.3.0. UseDisease.anyDisease()instead.since 2.3.0. UseCareProvider.hospitalName()instead.since 2.3.0. UseCareProvider.medicalProfession()instead.since 2.3.0. UseMedication.drugName()instead.since 2.3.0. UseMedicalProcedure.icd10()instead.since 2.3.0. UseObservation.symptom()insteadUseName.maleFirstName()instead.UseCredentials.username()instead.better to use TimeAndDate for more flexibility
-
Deprecated ClassesClassDescriptionUse
TimeAndDateinstead.since 2.3.0. This faker is deprecated due to migration to healthcare-specific aggregated intoHealthcareFakerfakers with similar methods.
-
Deprecated Enum Classes
-
Deprecated MethodsMethodDescriptionUse method
SwedenIdNumber.generateInvalid(BaseProviders)insteadUse non-static methodBaseFaker.getProvider(Class, Function)instead.UseBaseProviders.money()instead.UseBaseProviders.timeAndDate()instead.since 2.2.0. For removal in 3.0.0 version. UseMoney.currencyCode()instead.since 2.2.0. For removal in 3.0.0 version. UseMoney.currency()instead.since 2.2.0. For removal in 3.0.0 version. UseStock.nsdqSymbol()instead.since 2.2.0. For removal in 3.0.0 version. UseStock.nyseSymbol()instead.since 2.2.0. For removal in 3.0.0 version. UseStock.exchanges()instead.Instead of calling this method directly, use faker with locale:Faker faker = new Faker(new Locale("es", "MX")); String idNumber = faker.idNumber().invalid();Instead of calling this method directly, use faker with locale:Faker faker = new Faker(new Locale("pl", "PL")); String idNumber = faker.idNumber().valid();Instead of calling this method directly, use faker with locale and age/gender parameters:Faker faker = new Faker(new Locale("pl", "PL")); String idNumber = faker.idNumber().valid(new IdNumberRequest(minAge, maxAge, gender));Instead of calling this method directly, use faker with locale:Faker faker = new Faker(new Locale("en", "ZA")); String idNumber = faker.idNumber().valid();Instead of calling this method directly, use faker with locale:Faker faker = new Faker(new Locale("es", "MX")); String idNumber = faker.idNumber().valid();Instead of calling this method directly, use faker with locale:Faker f = new Faker(new Locale("en", "GE")); String idNumber = f.idNumber().valid();Instead of calling this method directly, use faker with locale:Faker f = new Faker(new Locale("en", "KR")); String rrn = f.idNumber().valid();Instead of calling this method directly, use faker with locale:Faker faker = new Faker(new Locale("pt", "PT")); String idNumber = faker.idNumber().valid();Instead of calling this method directly, use faker with locale:Faker faker = new Faker(new Locale("sv", "SE")); String idNumber = faker.idNumber().valid();Instead of calling this method directly, use faker with locale:Faker faker = new Faker(new Locale("zh", "CN")); String idNumber = faker.idNumber().valid();since 2.5.0. UseCredentials.password()instead.since 2.5.0. UseCredentials.password(boolean)instead.since 2.5.0. UseCredentials.password(int, int)instead.since 2.5.0. UseCredentials.password(int, int, boolean)instead.since 2.5.0. UseCredentials.password(int, int, boolean, boolean)instead.since 2.5.0. UseCredentials.password(int, int, boolean, boolean, boolean)instead.Since 2.5.0. UseCredentials.username()instead.Use {Locality.allSupportedLocales()} insteadsince 2.3.0. UseDisease.icd10()instead.since 2.3.0. UseDisease.anyDisease()instead.since 2.3.0. UseCareProvider.hospitalName()instead.since 2.3.0. UseCareProvider.medicalProfession()instead.since 2.3.0. UseMedication.drugName()instead.since 2.3.0. UseMedicalProcedure.icd10()instead.since 2.3.0. UseObservation.symptom()insteadUseName.maleFirstName()instead.UseCredentials.username()instead.useNumber.randomNumber(int)insteadbetter to use TimeAndDate for more flexibility
BaseProviders.money()instead.