Package lumis.portal.geolocation
Class City
- java.lang.Object
-
- lumis.portal.geolocation.City
-
- All Implemented Interfaces:
Serializable
@StableMinor(version="14.1", sinceVersion="10.2") public class City extends Object implements Serializable
Provides city information.- Since:
- 10.2.0
- Version:
- $Revision: 24683 $ $Date: 2021-08-23 18:55:58 -0300 (Mon, 23 Aug 2021) $
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Integer>
getGeoNameId()
Returns an optional geo name identifier.Optional<String>
getName(Locale... locales)
Returns an optional name of this city that is in some of the given locales.Map<Locale,String>
getNames()
Returns an unmodifiable map of this city names, grouped by locale.
-
-
-
Method Detail
-
getNames
public Map<Locale,String> getNames()
Returns an unmodifiable map of this city names, grouped by locale.- Returns:
- an unmodifiable map of this city names, grouped by locale.
- Since:
- 10.2.0
-
getName
public Optional<String> getName(Locale... locales)
Returns an optional name of this city 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 city that is in some of the given locales.
- Since:
- 10.2.0
-
-