Package lumis.portal.geolocation
Class Country
- java.lang.Object
-
- lumis.portal.geolocation.Country
-
- All Implemented Interfaces:
java.io.Serializable
@StableMinor(version="16.1", sinceVersion="10.2") public class Country extends java.lang.Object implements java.io.Serializable
Provides country information.- Since:
- 10.2.0
- Version:
- $Revision: 26156 $ $Date: 2024-01-13 10:26:46 -0300 (Sat, 13 Jan 2024) $
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Optional<java.lang.String>
getISOCode()
Returns an optional ISO code that represents this country.java.util.Optional<java.lang.String>
getName(java.util.Locale... locales)
Returns an optional name of this country that is in some of the given locales.java.util.Map<java.util.Locale,java.lang.String>
getNames()
Returns an unmodifiable map of this country names, grouped by locale.
-
-
-
Method Detail
-
getNames
public java.util.Map<java.util.Locale,java.lang.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 java.util.Optional<java.lang.String> getName(java.util.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
-
getISOCode
public java.util.Optional<java.lang.String> getISOCode()
Returns an optional ISO code that represents this country.- Returns:
- an optional ISO code that represents this country.
- Since:
- 10.2.0
-
-