| Constructor and Description |
|---|
Builder()
Creates an Iban Builder instance.
|
| Modifier and Type | Method and Description |
|---|---|
Iban.Builder |
accountNumber(String accountNumber)
Sets iban's account number.
|
Iban.Builder |
accountType(String accountType)
Sets iban's account type.
|
Iban.Builder |
bankCode(String bankCode)
Sets iban's bank code.
|
Iban.Builder |
branchCode(String branchCode)
Sets iban's branch code.
|
Iban |
build()
Builds new iban instance.
|
Iban |
build(boolean validate)
Builds new iban instance.
|
Iban |
buildRandom()
Builds random iban instance.
|
Iban.Builder |
countryCode(CountryCode countryCode)
Sets iban's country code.
|
Iban.Builder |
identificationNumber(String identificationNumber)
Sets iban's identification number.
|
Iban.Builder |
nationalCheckDigit(String nationalCheckDigit)
Sets iban's national check digit.
|
Iban.Builder |
ownerAccountType(String ownerAccountType)
Sets iban's owner account type.
|
public Iban.Builder countryCode(CountryCode countryCode)
countryCode - CountryCodepublic Iban.Builder bankCode(String bankCode)
bankCode - Stringpublic Iban.Builder branchCode(String branchCode)
branchCode - Stringpublic Iban.Builder accountNumber(String accountNumber)
accountNumber - Stringpublic Iban.Builder nationalCheckDigit(String nationalCheckDigit)
nationalCheckDigit - Stringpublic Iban.Builder accountType(String accountType)
accountType - Stringpublic Iban.Builder ownerAccountType(String ownerAccountType)
ownerAccountType - Stringpublic Iban.Builder identificationNumber(String identificationNumber)
identificationNumber - Stringpublic Iban build() throws IbanFormatException, IllegalArgumentException, UnsupportedCountryException
IbanFormatException - if values are not parsable by Iban Specification
ISO_13616UnsupportedCountryException - if country is not supportedIllegalArgumentExceptionpublic Iban build(boolean validate) throws IbanFormatException, IllegalArgumentException, UnsupportedCountryException
validate - boolean indicates if the generated IBAN needs to be
validated after generationIbanFormatException - if values are not parsable by Iban Specification
ISO_13616UnsupportedCountryException - if country is not supportedIllegalArgumentExceptionpublic Iban buildRandom() throws IbanFormatException, IllegalArgumentException, UnsupportedCountryException
IbanFormatException - if values are not parsable by Iban Specification
ISO_13616UnsupportedCountryException - if country is not supportedIllegalArgumentExceptionCopyright © 2020. All rights reserved.