类 Admin
java.lang.Object
ai.nextbillion.kits.directions.models.DirectionsJsonObject
ai.nextbillion.kits.directions.models.Admin
- 所有已实现的接口:
Serializable
An objects describing the administrative boundaries the route leg travels through.
- 另请参阅:
-
嵌套类概要
嵌套类 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static Admin.Builderbuilder()Create a new instance of this class by using theAdmin.Builderclass.abstract StringContains the 2 character ISO 3166-1 alpha-2 code that applies to a country boundary.abstract StringContains the 3 character ISO 3166-1 alpha-3 code that applies to a country boundary.static AdminCreate a new instance of this class by passing in a formatted valid JSON String.abstract Admin.BuilderConvert the currentAdminto its builder holding the currently assigned values.static com.google.gson.TypeAdapter<Admin>typeAdapter(com.google.gson.Gson gson) Gson type adapter for parsing Gson to this class.从类继承的方法 ai.nextbillion.kits.directions.models.DirectionsJsonObject
toJson
-
构造器详细资料
-
Admin
public Admin()
-
-
方法详细资料
-
countryCode
Contains the 2 character ISO 3166-1 alpha-2 code that applies to a country boundary. Example: `"US"`. -
countryCodeAlpha3
Contains the 3 character ISO 3166-1 alpha-3 code that applies to a country boundary. Example: `"USA"`. -
builder
Create a new instance of this class by using theAdmin.Builderclass.- 返回:
- this classes
Admin.Builderfor creating a new instance
-
toBuilder
Convert the currentAdminto its builder holding the currently assigned values. This allows you to modify a single property and then rebuild the object resulting in an updated and modifiedAdmin.- 返回:
- a
Admin.Builderwith the same values set to match the ones defined in thisAdmin
-
typeAdapter
Gson type adapter for parsing Gson to this class.- 参数:
gson- the builtGsonobject- 返回:
- the type adapter for this class
-
fromJson
Create a new instance of this class by passing in a formatted valid JSON String.- 参数:
json- a formatted valid JSON string defining an Incident- 返回:
- a new instance of this class defined by the values passed in the method
-