Class VehicleFuel

  • All Implemented Interfaces:
    java.io.Serializable

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

      Constructors 
      Constructor Description
      VehicleFuel()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Double getAmountRemaining()
      Returns the fuel amount remaining
      java.lang.Double getPercentRemaining()
      Returns the fuel percent remaining
      java.lang.Double getRange()
      Returns the fuel range
      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

      • VehicleFuel

        public VehicleFuel()
    • Method Detail

      • getRange

        public java.lang.Double getRange()
        Returns the fuel range
        Returns:
        fuel range
      • getPercentRemaining

        public java.lang.Double getPercentRemaining()
        Returns the fuel percent remaining
        Returns:
        fuel percent remaining
      • getAmountRemaining

        public java.lang.Double getAmountRemaining()
        Returns the fuel amount remaining
        Returns:
        fuel amount remaining
      • 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 VehicleFuel