public class IbanBuilder extends Object
| Constructor and Description |
|---|
IbanBuilder(Dummy4j dummy4j,
dev.codesoapbox.dummy4j.dummies.finance.IbanFormula ibanFormula) |
| Modifier and Type | Method and Description |
|---|---|
String |
build()
Generates a random IBAN
|
IbanBuilder |
formatted()
Formats the generated IBAN, separating every 4 characters or the remainder with a space.
|
String |
toString() |
IbanBuilder |
withCountry(BankAccountCountry country)
Sets the IBAN country
|
IbanBuilder |
withRandomCountry()
Sets a random country for the generated IBAN.
|
IbanBuilder |
withRandomCountry(BankAccountCountry... countries)
Sets the country for the generated IBAN to one that is randomly chosen from provided arguments
|
public IbanBuilder(Dummy4j dummy4j, dev.codesoapbox.dummy4j.dummies.finance.IbanFormula ibanFormula)
public IbanBuilder withRandomCountry()
This is the default behavior for this builder.
BankAccountCountrypublic IbanBuilder withRandomCountry(BankAccountCountry... countries)
BankAccountCountrypublic IbanBuilder withCountry(BankAccountCountry country)
BankAccountCountrypublic IbanBuilder formatted()
GL25 3015 7608 5103 56.public String build()
Copyright © 2021. All rights reserved.