Package lumis.portal.geolocation
Class Country
- java.lang.Object
-
- lumis.portal.geolocation.Country
-
- All Implemented Interfaces:
Serializable
@StableMinor(version="14.2", sinceVersion="10.2") public class Country extends Object implements Serializable
Provides country information.- Since:
- 10.2.0
- Version:
- $Revision: 24985 $ $Date: 2022-05-02 23:04:30 -0300 (Mon, 02 May 2022) $
- 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
-
-