Package de.chiflux.tesla
Record Class StateChangeInfo
java.lang.Object
java.lang.Record
de.chiflux.tesla.StateChangeInfo
- Record Components:
basicVehicleInfoTimestamp- basicVehicleInfoTimestampbasicVehicleInfo- basicVehicleInfoextendedVehicleInfoTimestamp- extendedVehicleInfoTimestampextendedVehicleInfo- extendedVehicleInfo
public record StateChangeInfo(Instant basicVehicleInfoTimestamp, BasicVehicleInfo basicVehicleInfo, Instant extendedVehicleInfoTimestamp, ExtendedVehicleInfo extendedVehicleInfo)
extends Record
Contains basic and extended vehicle information along with the timestamps
-
Constructor Summary
ConstructorsConstructorDescriptionStateChangeInfo(Instant basicVehicleInfoTimestamp, BasicVehicleInfo basicVehicleInfo, Instant extendedVehicleInfoTimestamp, ExtendedVehicleInfo extendedVehicleInfo) Creates an instance of aStateChangeInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebasicVehicleInforecord component.Returns the value of thebasicVehicleInfoTimestamprecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theextendedVehicleInforecord component.Returns the value of theextendedVehicleInfoTimestamprecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
StateChangeInfo
public StateChangeInfo(Instant basicVehicleInfoTimestamp, BasicVehicleInfo basicVehicleInfo, Instant extendedVehicleInfoTimestamp, ExtendedVehicleInfo extendedVehicleInfo) Creates an instance of aStateChangeInforecord class.- Parameters:
basicVehicleInfoTimestamp- the value for thebasicVehicleInfoTimestamprecord componentbasicVehicleInfo- the value for thebasicVehicleInforecord componentextendedVehicleInfoTimestamp- the value for theextendedVehicleInfoTimestamprecord componentextendedVehicleInfo- the value for theextendedVehicleInforecord 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). -
basicVehicleInfoTimestamp
Returns the value of thebasicVehicleInfoTimestamprecord component.- Returns:
- the value of the
basicVehicleInfoTimestamprecord component
-
basicVehicleInfo
Returns the value of thebasicVehicleInforecord component.- Returns:
- the value of the
basicVehicleInforecord component
-
extendedVehicleInfoTimestamp
Returns the value of theextendedVehicleInfoTimestamprecord component.- Returns:
- the value of the
extendedVehicleInfoTimestamprecord component
-
extendedVehicleInfo
Returns the value of theextendedVehicleInforecord component.- Returns:
- the value of the
extendedVehicleInforecord component
-