类 MaxSpeed.Builder

java.lang.Object
ai.nextbillion.kits.directions.models.MaxSpeed.Builder
封闭类:
MaxSpeed

public abstract static class MaxSpeed.Builder extends Object
This builder can be used to set the values describing the MaxSpeed.
  • 构造器详细资料

    • Builder

      public Builder()
  • 方法详细资料

    • speed

      public abstract MaxSpeed.Builder speed(@Nullable Integer speed)
      Number indicating the posted speed limit.
      参数:
      speed - indicating the posted speed limit
      返回:
      a MaxSpeed.Builder object
    • unit

      public abstract MaxSpeed.Builder unit(@Nullable String unit)
      String indicating the unit of speed, either as `km/h` or `mph`.
      参数:
      unit - either as `km/h` or `mph`
      返回:
      a MaxSpeed.Builder object
    • unknown

      public abstract MaxSpeed.Builder unknown(@Nullable Boolean unknown)
      Boolean is true if the speed limit is not known, otherwise null.
      参数:
      unknown - true if speed limit is not known, otherwise null
      返回:
      a MaxSpeed.Builder object
    • none

      public abstract MaxSpeed.Builder none(@Nullable Boolean none)
      Boolean is `true` if the speed limit is unlimited, otherwise null.
      参数:
      none - true if speed limit is unlimited, otherwise null
      返回:
      a MaxSpeed.Builder object
    • build

      public abstract MaxSpeed build()
      Build a new MaxSpeed object.
      返回:
      a new MaxSpeed using the provided values in this builder