类 Closure

所有已实现的接口:
Serializable

public abstract class Closure extends DirectionsJsonObject
An object indicating the geometry indexes defining a road closure.
另请参阅:
  • 构造器详细资料

    • Closure

      public Closure()
  • 方法详细资料

    • geometryIndexStart

      @Nullable @SerializedName("geometry_index_start") public abstract Integer geometryIndexStart()
      Closure's geometry index start point.
    • geometryIndexEnd

      @Nullable @SerializedName("geometry_index_end") public abstract Integer geometryIndexEnd()
      Closure's geometry index end point.
    • builder

      public static Closure.Builder builder()
      Create a new instance of this class by using the Closure.Builder class.
      返回:
      this classes Closure.Builder for creating a new instance
    • toBuilder

      public abstract Closure.Builder toBuilder()
      Convert the current Closure to 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 modified Closure.
      返回:
      a Closure.Builder with the same values set to match the ones defined in this Closure
    • typeAdapter

      public static com.google.gson.TypeAdapter<Closure> typeAdapter(com.google.gson.Gson gson)
      Gson type adapter for parsing Gson to this class.
      参数:
      gson - the built Gson object
      返回:
      the type adapter for this class
    • fromJson

      public static Closure fromJson(String json)
      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