-
- All Implemented Interfaces:
-
android.os.Parcelable,kotlin.Comparable
public final class SpeedAssociatedEnergyConsumption implements Parcelable, Comparable<SpeedAssociatedEnergyConsumption>
Data class representing the road name.
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegerspeedInKphprivate final Doubleconsumption
-
Constructor Summary
Constructors Constructor Description SpeedAssociatedEnergyConsumption(Integer speedInKph, Double consumption)
-
Method Summary
Modifier and Type Method Description final IntegergetSpeedInKph()Speed in kilometers per hour. final DoublegetConsumption()Energy cost for 1 meter drive in given speed, it is a non-negative value. final BooleanisValid()IntegercompareTo(SpeedAssociatedEnergyConsumption other)IntegerdescribeContents()-
-
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.
-
compareTo
Integer compareTo(SpeedAssociatedEnergyConsumption other)
-
describeContents
Integer describeContents()
-
-
-
-