Package 

Class SpeedAssociatedEnergyConsumption

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Integer speedInKph
      private final Double consumption
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Integer getSpeedInKph() Speed in kilometers per hour.
      final Double getConsumption() Energy cost for 1 meter drive in given speed, it is a non-negative value.
      final Boolean isValid() Performs is valid.
      Integer compareTo(SpeedAssociatedEnergyConsumption other) Performs compare to.
      Integer describeContents() Performs describe contents.
      • Methods inherited from class java.lang.Object

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

      • SpeedAssociatedEnergyConsumption

        SpeedAssociatedEnergyConsumption(Integer speedInKph, Double consumption)
    • Method Detail

      • getSpeedInKph

         final Integer getSpeedInKph()

        Speed in kilometers per hour. The speed must be an integer in the following interval: 0,255.

      • getConsumption

         final Double getConsumption()

        Energy cost for 1 meter drive in given speed, it is a non-negative value.

      • isValid

         final Boolean isValid()

        Performs is valid.