Package com.highmobility.autoapi.value
Class DrivingModeEnergyConsumption
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<Byte>
com.highmobility.value.Bytes
com.highmobility.autoapi.property.PropertyValueObject
com.highmobility.autoapi.value.DrivingModeEnergyConsumption
-
Field Summary
FieldsFields inherited from class com.highmobility.value.Bytes
bytesFields inherited from class java.util.AbstractList
modCount -
Constructor Summary
ConstructorsConstructorDescriptionDrivingModeEnergyConsumption(DrivingMode drivingMode, com.highmobility.autoapi.value.measurement.Energy consumption) DrivingModeEnergyConsumption(com.highmobility.value.Bytes valueBytes) -
Method Summary
Modifier and TypeMethodDescriptioncom.highmobility.autoapi.value.measurement.EnergyintMethods inherited from class com.highmobility.autoapi.property.PropertyValueObject
getItemSizeMethods inherited from class com.highmobility.value.Bytes
concat, concat, equals, get, getBase64, getBase64UrlSafe, getByteArray, getHex, getRange, set, set, set, size, toStringMethods inherited from class java.util.AbstractList
add, add, addAll, clear, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArrayMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray
-
Field Details
-
SIZE
public static final int SIZE- See Also:
-
-
Constructor Details
-
DrivingModeEnergyConsumption
public DrivingModeEnergyConsumption(DrivingMode drivingMode, com.highmobility.autoapi.value.measurement.Energy consumption) -
DrivingModeEnergyConsumption
public DrivingModeEnergyConsumption(com.highmobility.value.Bytes valueBytes) throws CommandParseException - Throws:
CommandParseException
-
-
Method Details
-
getDrivingMode
- Returns:
- The driving mode.
-
getConsumption
public com.highmobility.autoapi.value.measurement.Energy getConsumption()- Returns:
- Energy consumption in the driving mode.
-
getLength
public int getLength()- Overrides:
getLengthin classcom.highmobility.value.Bytes
-