Class VehicleOdometer

  • All Implemented Interfaces:
    java.io.Serializable

    public class VehicleOdometer
    extends ApiData
    POJO for Smartcar /odometer endpoint
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      VehicleOdometer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getDistance()
      Returns the odometer distance
      java.lang.String toString()
      Returns the stored data string.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • VehicleOdometer

        public VehicleOdometer()
    • Method Detail

      • getDistance

        public double getDistance()
        Returns the odometer distance
        Returns:
        odometer distance
      • toString

        public java.lang.String toString()
        Description copied from class: ApiData
        Returns the stored data string.
        Overrides:
        toString in class ApiData
        Returns:
        a stringified representation of VehicleOdometer