Package lumis.portal.geolocation
Class Country
- java.lang.Object
-
- lumis.portal.geolocation.Country
-
- All Implemented Interfaces:
Serializable
@StableMinor(version="14.0", sinceVersion="10.2") public class Country extends Object implements Serializable
Provides country information.- Since:
- 10.2.0
- Version:
- $Revision: 24477 $ $Date: 2021-04-28 11:30:36 -0300 (Wed, 28 Apr 2021) $
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<String>
getISOCode()
Returns an optional ISO code that represents this country.Optional<String>
getName(Locale... locales)
Returns an optional name of this country that is in some of the given locales.Map<Locale,String>
getNames()
Returns an unmodifiable map of this country names, grouped by locale.
-
-
-
Method Detail
-
getNames
public Map<Locale,String> getNames()
Returns an unmodifiable map of this country names, grouped by locale.- Returns:
- an unmodifiable map of this country names, grouped by locale.
- Since:
- 10.2.0
-
getName
public Optional<String> getName(Locale... locales)
Returns an optional name of this country that is in some of the given locales. The lookup order is the given locales order.- Parameters:
locales
- the locales.- Returns:
- an optional name of this country that is in some of the given locales.
- Since:
- 10.2.0
-
-