Package de.chiflux.tesla.api
Record Class VehicleConfig
java.lang.Object
java.lang.Record
de.chiflux.tesla.api.VehicleConfig
- Record Components:
car_type- car_typecar_special_type- car_special_typetimestamp- timestamptrim_badging- trim_badgingutc_offset- utc_offset
public record VehicleConfig(String car_type, String car_special_type, Long timestamp, String trim_badging, Integer utc_offset)
extends Record
The VehicleConfig record, encapsulates data about a vehicle configuration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecar_special_typerecord component.car_type()Returns the value of thecar_typerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetrim_badgingrecord component.Returns the value of theutc_offsetrecord component.
-
Constructor Details
-
VehicleConfig
public VehicleConfig(String car_type, String car_special_type, Long timestamp, String trim_badging, Integer utc_offset) Creates an instance of aVehicleConfigrecord class.- Parameters:
car_type- the value for thecar_typerecord componentcar_special_type- the value for thecar_special_typerecord componenttimestamp- the value for thetimestamprecord componenttrim_badging- the value for thetrim_badgingrecord componentutc_offset- the value for theutc_offsetrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
car_type
Returns the value of thecar_typerecord component.- Returns:
- the value of the
car_typerecord component
-
car_special_type
Returns the value of thecar_special_typerecord component.- Returns:
- the value of the
car_special_typerecord component
-
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
trim_badging
Returns the value of thetrim_badgingrecord component.- Returns:
- the value of the
trim_badgingrecord component
-
utc_offset
Returns the value of theutc_offsetrecord component.- Returns:
- the value of the
utc_offsetrecord component
-