Record Class UsagePointGeneralDatas
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.fr.enedis.dto.address.UsagePointGeneralDatas
Envelope for the données générales response, so the connector can read it whether Enedis sends an
array or a bare object.
-
Constructor Summary
ConstructorsConstructorDescriptionUsagePointGeneralDatas(List<UsagePointGeneralData> generalData) Creates an instance of aUsagePointGeneralDatasrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegeneralDatarecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
UsagePointGeneralDatas
Creates an instance of aUsagePointGeneralDatasrecord class.- Parameters:
generalData- the value for thegeneralDatarecord 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). -
generalData
Returns the value of thegeneralDatarecord component.- Returns:
- the value of the
generalDatarecord component
-