Record Class InstallationAddress
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.fr.enedis.dto.address.InstallationAddress
public record InstallationAddress(@Nullable String staircaseFloorApartment, @Nullable String building, @Nullable String numberStreetName, @Nullable String locality, @Nullable String postalCodeCity, @Nullable String inseeCode)
extends Record
Postal address of the installation (PRM).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable Stringbuilding()Returns the value of thebuildingrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable StringReturns the value of theinseeCoderecord component.@Nullable Stringlocality()Returns the value of thelocalityrecord component.@Nullable StringReturns the value of thenumberStreetNamerecord component.@Nullable StringReturns the value of thepostalCodeCityrecord component.@Nullable StringReturns the value of thestaircaseFloorApartmentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InstallationAddress
public InstallationAddress(@Nullable String staircaseFloorApartment, @Nullable String building, @Nullable String numberStreetName, @Nullable String locality, @Nullable String postalCodeCity, @Nullable String inseeCode) Creates an instance of aInstallationAddressrecord class.- Parameters:
staircaseFloorApartment- the value for thestaircaseFloorApartmentrecord componentbuilding- the value for thebuildingrecord componentnumberStreetName- the value for thenumberStreetNamerecord componentlocality- the value for thelocalityrecord componentpostalCodeCity- the value for thepostalCodeCityrecord componentinseeCode- the value for theinseeCoderecord 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). -
staircaseFloorApartment
Returns the value of thestaircaseFloorApartmentrecord component.- Returns:
- the value of the
staircaseFloorApartmentrecord component
-
building
Returns the value of thebuildingrecord component.- Returns:
- the value of the
buildingrecord component
-
numberStreetName
Returns the value of thenumberStreetNamerecord component.- Returns:
- the value of the
numberStreetNamerecord component
-
locality
Returns the value of thelocalityrecord component.- Returns:
- the value of the
localityrecord component
-
postalCodeCity
Returns the value of thepostalCodeCityrecord component.- Returns:
- the value of the
postalCodeCityrecord component
-
inseeCode
Returns the value of theinseeCoderecord component.- Returns:
- the value of the
inseeCoderecord component
-