Skip to content

Generate an iban with a country code chosen at random from a list.#63

Open
dieks wants to merge 1 commit intoarturmkrtchyan:masterfrom
dieks:Generate_for_multiple_countries
Open

Generate an iban with a country code chosen at random from a list.#63
dieks wants to merge 1 commit intoarturmkrtchyan:masterfrom
dieks:Generate_for_multiple_countries

Conversation

@dieks
Copy link

@dieks dieks commented Sep 10, 2019

Making it possible to generate an iban with a country code chosen randomly from a given set of country codes.
In case the specific country code of the iban to generate is one of a set of possible codes, you could pass these possible codes as a list to the builder.

public final static class Builder {

private CountryCode countryCode;
private List<CountryCode> countryCodes;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would delete private CountryCode countryCode; and replace it with instantiating the build with a singletonList(countryCode).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants