Class State

    • 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
      • getGeoNameId

        public Optional<Integer> getGeoNameId()
        Returns an optional geo name identifier.
        Returns:
        an optional geo name identifier.
        Since:
        10.2.0