Class City


  • public final class City
    extends geolife.android.navigationsystem.internal.NativePointerHolder
    • Constructor Summary

      Constructors 
      Constructor Description
      City​(java.lang.String name)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getCityClass()
      Returns the class of the city.
      java.lang.String getName()  
      java.lang.String getTransliteratedName()  
      boolean isCapital()
      Determines whether the city is the capital of a country.
      void setCapital​(boolean isCapital)
      Determines whether the city is the capital of a country.
      void setCityClass​(int cityClass)  
      void setName​(java.lang.String name)  
      void setTransliteratedName​(java.lang.String transliteratedName)  
      java.lang.String toString()  
      • Methods inherited from class geolife.android.navigationsystem.internal.NativePointerHolder

        destroy
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • City

        public City​(java.lang.String name)
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns:
        The city name.
      • setName

        public void setName​(java.lang.String name)
        Parameters:
        name - The city name.
      • getTransliteratedName

        public java.lang.String getTransliteratedName()
        Returns:
        The transliterated city name.
      • setTransliteratedName

        public void setTransliteratedName​(java.lang.String transliteratedName)
        Parameters:
        transliteratedName - The transliterated city name.
      • getCityClass

        public int getCityClass()
        Returns the class of the city. Determines the size of the city. Possible values: -1, 0..15, where 0 is the highest class (big city), 15 is the lowest class (small settlement) and -1 means that city class is undefined.
        Returns:
        The city class.
      • setCityClass

        public void setCityClass​(int cityClass)
        Parameters:
        cityClass - The city class.
        See Also:
        getCityClass()
      • isCapital

        public boolean isCapital()
        Determines whether the city is the capital of a country.
        Returns:
        true if the city is the capital, false otherwise.
      • setCapital

        public void setCapital​(boolean isCapital)
        Determines whether the city is the capital of a country.
        Parameters:
        isCapital - true if the city is the capital, false otherwise.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object