Interface VehicleInfo

All Known Implementing Classes:
BasicVehicleInfo, ExtendedVehicleInfo

public interface VehicleInfo
Basic common interface for vehicles
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final double
    Conversion factor to convert miles to kilometers
  • Method Summary

    Modifier and Type
    Method
    Description
    id()
    ID (id_s) information of the vehicle
    Constructs a user-friendly record of selected information of the vehicleData API
    Constructs a user-friendly record of selected information of the vehicles API
  • Field Details

    • MILE_TO_KM_FACTOR

      static final double MILE_TO_KM_FACTOR
      Conversion factor to convert miles to kilometers
      See Also:
  • Method Details

    • id

      String id()
      ID (id_s) information of the vehicle
      Returns:
      ID (id_s) information of the vehicle
    • ofVehicleData

      static BasicVehicleInfo ofVehicleData(VehicleData vehicleData)
      Constructs a user-friendly record of selected information of the vehicles API
      Parameters:
      vehicleData - record of the vehicles API
      Returns:
      record of selected information of the vehicles API
    • ofFullVehicleData

      static ExtendedVehicleInfo ofFullVehicleData(FullVehicleData fullVehicleData)
      Constructs a user-friendly record of selected information of the vehicleData API
      Parameters:
      fullVehicleData - record of the vehicleData API
      Returns:
      record of selected information of the vehicleData API