- Added
XU
(United Kingdom (excluding Northern Ireland)) to CountryCode (Pull Request 78).
-
Added mapping of country code 280 to DE (Pull Request 54).
-
Added
XI
(Northern Ireland) toCountryCode
(Pull Request 73). -
Marked
VEF
("Bolivar") as deprecated (Pull Request 74).
- Renamed "Swaziland" to "Eswatini" (Pull Request 62).
- Added
ro_MD
(Romanian in Republic of Moldova) toLocaleCode
(Pull Request 59).
- Renamed "Macedonia, the former Yugoslav Republic of" to "North Macedonia, Republic of" (Pull Request 56).
-
Added
VES
("Bolivar Soberano") toCurrencyCode
(Pull Request 55). -
Corrected the alpha-3 code of
XK
(Kosovo) fromXXK
toXKX
(Pull Request 51). -
Marked
BYR
,LTL
andRUR
inCurrencyCode
as deprecated (Issue 38). -
Added
LT
(Lithuania) to the country list ofEUR
("Euro") (Issue 38).
-
Added
EZ
(Eurozone) toCountryCode
(Issue 45). -
Added
MRU
(Ouguiya) andSTN
(Dobra) toCurrencyCode
, and markedMRO
andSTD
as deprecated (Issue 48). -
Made
getByAlpha?Code(String)
methods inCountryCode
class public (Issue 49).
-
Added
en_HK
(English, Hong Kong) toLocaleCode
(Issue 36). -
Added
kk_KZ
(Kazakh, Kazakhstan) andru_KZ
(Russian, Kazakhstan) toLocaleCode
(Issue 37).
- Added
fa
(Farsi) andfa_IR
(Farsi, Iran) toLocaleCode
. (PR 33).
- Added a new currency code, RUR (Russian Ruble before the 1998 denomination). (Issue 32).
- Added a new currency code, BYN (Belarusian Ruble) (Issue 31). See ISO 4217 AMENDMENT NUMBER 161.
- Corrected the currency name of
CurrencyCode.BYR
from"Belarussian Ruble"
to"Belarusian Ruble"
.
- Corrected the language name of
LanguageAlpha3Code.ron
from"Romansh"
to"Romanian"
. (Issue 29)
- Changed the numeric code of
CountryCode.FX
from -1 to 249. - Changed the numeric code of
CountryCode.SU
from -1 to 810. - Changed the numeric code of
CountryCode.TP
from 0 to 626. - Changed the numeric code of
CountryCode.UK
from -1 to 826. - Changed the numeric code of
CountryCode.ZR
from 0 to 180. - Changed the behavior of
CountryCode.getByCode(int)
for shared numeric codes. See its JavaDoc for details.
- Changed the value returned from
CountryCode.getByAlpha3()
of someCountryCode
entries that had previously returned a 4-letter string (Issue 28). To be concrete, the changes made are as follows. For backward compatibility,CountryCode.getByCode(String, boolean)
and its variants accept the old 4-letter values listed here.
CountryCode |
Old Value | New Value |
---|---|---|
CountryCode.AN |
ANHH |
ANT |
CountryCode.BU |
BUMM |
BUR |
CountryCode.CS |
CSXX |
SCG |
CountryCode.NT |
NTHH |
NTZ |
CountryCode.TP |
TPTL |
TMP |
CountryCode.YU |
YUCS |
YUG |
CountryCode.ZR |
ZRCD |
ZAR |
- Changed the implementation of
CountryCode.getByCode(String, boolean)
to returnCountryCode.FI
instead ofCountryCode.SF
when"FIN"
is given.
- Changed the country name of
CountryCode.AX
from "\u212Bland Islands" to "\u00C5land Islands". (Issue 24)
-
Fixed
CurrencyCode.XAF
. It containedCD
(Congo, the Democratic Republic of the), but it should beCG
(Cong). -
Added
CountryCode.UNDEFINED
. -
Added
CurrencyCode.UNDEFINED
. -
Added
LanguageAlpha3Code.undefined
. -
Added
LanguageCode.undefined
. -
Added
LocaleCode.undefined
. -
Added
ScriptCode.Undefined
.
-
Added
CountryCode.XK
for "Kosovo, Republic of". -
Changes common to
CountryCode
,CurrencyCode
,LanguageAlpha3Code
,LanguageCode
,LocaleCode
andScriptCode
.-
Added
getByCodeIgnoreCase(String)
. -
Changed the behavior of
getByCode(String)
. In older versions, it was an alias ofgetByCode(String, false)
, but now it is an alias ofgetByCode(String, true)
.
-
-
Changes common to
CountryCode
,CurrencyCode
andScriptCode
.- Changed the behavior of
getByCode(int)
. It now returns null when 0 or a negative integer is given.
- Changed the behavior of
-
Changes common to
CurrencyCode
andLocaleCode
.-
Added
getByCountryIgnoreCase(String)
. -
Changed the behavior of
getByCountry(String)
. In older versions, it was an alias ofgetByCountry(String, false)
, but now it is an alias ofgetByCountry(String, true)
.
-
-
Changes on
LocaleCode
-
Added
getByCodeIgnoreCase(String, String)
. -
Changed the behavior of
getByCode(String, String)
. In older versions, it was an alias ofgetByCode(String, String, false)
, but now it is an alias ofgetByCode(String, String, true)
. -
Added
getByLanguageIgnoreCase(String)
. -
Changed the behavior of
getByLanguage(String)
. In older versions, it was an alias ofgetByLanguage(String, false)
, but now it is an alias ofgetByLanguage(String, true)
.
-