类 Congestion

java.lang.Object
ai.nextbillion.kits.directions.models.DirectionsJsonObject
ai.nextbillion.kits.directions.models.Congestion
所有已实现的接口:
Serializable

public abstract class Congestion extends DirectionsJsonObject
Quantitative descriptor of congestion.
另请参阅:
  • 构造器详细资料

    • Congestion

      public Congestion()
  • 方法详细资料

    • value

      public abstract int value()
      Quantitative descriptor of congestion. 0 to 100.
    • builder

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

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

      public static com.google.gson.TypeAdapter<Congestion> 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 Congestion 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 Congestion
      返回:
      a new instance of this class defined by the values passed in the method