Package de.chiflux.tesla.api
Record Class VehicleData
java.lang.Object
java.lang.Record
de.chiflux.tesla.api.VehicleData
- Record Components:
id_s- id_sdisplay_name- display_namestate- stateapi_version- api_version
public record VehicleData(String id_s, String display_name, String state, Integer api_version)
extends Record
The VehicleData record, encapsulates basic data about a vehicle.
-
Constructor Summary
ConstructorsConstructorDescriptionVehicleData(String id_s, String display_name, String state, Integer api_version) Creates an instance of aVehicleDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapi_versionrecord component.Returns the value of thedisplay_namerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id_s()Returns the value of theid_srecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
VehicleData
Creates an instance of aVehicleDatarecord class.- Parameters:
id_s- the value for theid_srecord componentdisplay_name- the value for thedisplay_namerecord componentstate- the value for thestaterecord componentapi_version- the value for theapi_versionrecord 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). -
id_s
Returns the value of theid_srecord component.- Returns:
- the value of the
id_srecord component
-
display_name
Returns the value of thedisplay_namerecord component.- Returns:
- the value of the
display_namerecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
api_version
Returns the value of theapi_versionrecord component.- Returns:
- the value of the
api_versionrecord component
-