Class CityInfo

java.lang.Object
com.baidu.mapapi.search.core.CityInfo
All Implemented Interfaces:
android.os.Parcelable

public class CityInfo extends Object implements android.os.Parcelable
搜索结果城市信息。

搜索结果城市城市信息,包含城市名和该城市搜索结果数量

  • Nested Class Summary

    Nested classes/interfaces inherited from interface android.os.Parcelable

    android.os.Parcelable.ClassLoaderCreator<T extends Object>, android.os.Parcelable.Creator<T extends Object>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    城市名称
    static final android.os.Parcelable.Creator<CityInfo>
     
    int
    搜索结果数量

    Fields inherited from interface android.os.Parcelable

    CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
     
    protected
    CityInfo(android.os.Parcel source)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    void
    writeToParcel(android.os.Parcel dest, int flags)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • city

      public String city
      城市名称
    • num

      public int num
      搜索结果数量
    • CREATOR

      public static final android.os.Parcelable.Creator<CityInfo> CREATOR
  • Constructor Details

    • CityInfo

      public CityInfo()
    • CityInfo

      protected CityInfo(android.os.Parcel source)
  • Method Details

    • describeContents

      public int describeContents()
      Specified by:
      describeContents in interface android.os.Parcelable
    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Specified by:
      writeToParcel in interface android.os.Parcelable