daniel-frak / dummy4j

An extensible dummy/fake data generator library for Java
https://daniel-frak.github.io/dummy4j/
Apache License 2.0
11 stars 2 forks source link

Builders - enable reuse through with/without parity #40

Open daniel-frak opened 3 years ago

daniel-frak commented 3 years ago

We should allow all builders to be reusable by 'undoing' any methods called on them. In this case I mean that everywhere we have a withoutX, like in CreditCardNumberBuilder and CreditCardBuilder (withoutFormatting), we should also have a withFormatting method.