arturmkrtchyan / iban4j

A Java library for generation and validation of the International Bank Account Numbers (IBAN ISO_13616) and Business Identifier Codes (BIC ISO_9362).
http://iban4j.org
Apache License 2.0
270 stars 124 forks source link

Avoid substring calculation for each getter operation on Iban class #137

Open haroonsin opened 4 months ago

haroonsin commented 4 months ago

Can we retain iban's attributes as state within Iban class? That way we do not have to perform a substring operation whenever a getter is invoked., say getAccountNumber(), getCountryCode() etc.