4.0.0 released #235
Locked
marcwrobel
announced in
Announcements
Replies: 1 comment 1 reply
-
|
Congrats on the release! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Added
CreditorIdentifier#REGEXpublic (as part of Get rid of regexes inCreditorIdentifier#172).Iban#REGEXpublic (as part of Get rid of regexes inIban#171).SwiftPatternCharacterRepresentationto centralize information about SWIFT pattern character representations (as part of Get rid of regexes inIban#171).BbanStructurepublic (as part of Add IBAN generation #153).BbanStructureis an enum that holds countries BBAN structure as listed in the IBAN registry.Iban#getBankIdentifier()to get the bank identifier from an Iban (Get bank / branch identifier, account number and national check digits from IBAN #162).Iban#getBranchIdentifier()to get the branch identifier from an Iban (Get bank / branch identifier, account number and national check digits from IBAN #162).Iban#getAccountNumber()to get the account number from an Iban (Get bank / branch identifier, account number and national check digits from IBAN #162).Iban#getNationalCheckDigit()to get the national check digit from an Iban (Get bank / branch identifier, account number and national check digits from IBAN #162).Changed
CreditorIdentifierfinal (Make CreditorIdentifier final #116).Bic#BIC_REGEXtoBic#REGEXand make it accept untrimmed strings (as part of Get rid of regexes inBic#170 and Accept untrimmed input strings inIban,BicandCreditorIdentifier#176).Ibannot accepting values containing spaces anymore (as part of Make CreditorIdentifier final #116). This meansprintable or untrimmed IBANs are not considered valid values anymore. Note that this feature was not documented.
IbanCheckDigit#validatereturnfalsefornullor less than 5 characters strings (MakeIbanCheckDigit#validatereturnfalseinstead of raising an exception fornullor less than 5 characters strings #188).SwiftPattern#toStringreturning only the SWIFT pattern expression (as part of Add serialization tests for serializable classes #222).Prior to this version
SwiftPattern#toStringwere returning the SWIFT pattern expression with its corresponding regular expression.BicFormatException,CreditorIdentifierFormatException,IbanFormatExceptionandSwiftPatternSyntaxExceptionextendIllegalArgumentExceptioninstead ofRuntimeException(XXXFormatException should extend IllegalArgumentException #220).IbanCheckDigitfromfr.marcwrobel.jbanking.ibantofr.marcwrobel.jbanking.checkdigit(GeneralizeIbanCheckDigit#174).Bic,CreditorIdentifier,Iban,IsoCountryandIsoCurrency(Accept untrimmed input strings inIban,BicandCreditorIdentifier#176). In earlier versions only case-insensitive were accepted.Bic#170). This significantly increased the performances of BIC validation and creation (+200-300%).CreditorIdentifier#172). This significantly increased the performances of Creditor Identifiers validation and creation (+100-300%).Iban#171). This significantly increased the performances of IBAN validation and creation (+200-400%).Bic#170 and Get rid of regexes inCreditorIdentifier#172).Bic,CreditorIdentifier,IbanandSwiftPatternregarding serialization (as part of Add serialization tests for serializable classes #222).Fixed
Iban.isValid(String)orIbanCheckDigit.validate(String)returnfalseinstead of raising anIllegalArgumentExceptionwith invalid IBAN check digit (e.g.00,01, or99).Bic,CreditorIdentifierandIbandocumentation (Fix Bic, Iban and CreditorIdentifier documentation #209). It was not explicit that lowercase characters were accepted.Removed
Bic#BIC_PATTERN(as part of Get rid of regexes inBic#170). If you still need to use the BIC regex, you may compile the pattern fromBic#REGEX, which has been kept for compatibility and documentation purposes.Internal
IsoCurrency,HolidaysandBbanStructureenums entries (Alphabetically sort enums entries #161).OutOfMemoryError.Character.digitinstead ofCharacter.getNumericValueinIbanCheckDigitas recommended in Error Prone#CharacterGetNumericValue (closes Use Character.digit instead of Character.getNumericValue in IbanCheckDigit #117).CheckDigitinterface and makeIbanCheckDigitimplements it (GeneralizeIbanCheckDigit#174).Thanks
Many thanks to @aSemy for his help on #153 !
This discussion was created from the release 4.0.0.
Beta Was this translation helpful? Give feedback.
All reactions