Package lumis.portal.geolocation
Class State
- java.lang.Object
-
- lumis.portal.geolocation.State
-
- All Implemented Interfaces:
Serializable
@StableMinor(version="14.1", sinceVersion="10.2") public class State extends Object implements Serializable
Provides state 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>
getISOCode()
Returns an optional ISO code that represents this state.Optional<String>
getName(Locale... locales)
Returns an optional name of this state that is in some of the given locales.Map<Locale,String>
getNames()
Returns an unmodifiable map of this state names, grouped by locale.
-
-
-
Method Detail
-
getNames
public Map<Locale,String> getNames()
Returns an unmodifiable map of this state names, grouped by locale.- Returns:
- an unmodifiable map of this state names, grouped by locale.
- Since:
- 10.2.0
-
getName
public Optional<String> getName(Locale... locales)
Returns an optional name of this state 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 state that is in some of the given locales.
- Since:
- 10.2.0
-
getISOCode
public Optional<String> getISOCode()
Returns an optional ISO code that represents this state.- Returns:
- an optional ISO code that represents this state.
- Since:
- 10.2.0
-
-