Record Class MeteringPointAddress
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.fi.fingrid.client.model.MeteringPointAddress
- All Implemented Interfaces:
Address
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaddressNoterecord component.Returns the value of theapartmentrecord component.Returns the value of thebuildingNumberrecord component.Returns the value of thecountryCoderecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.language()Returns the value of thelanguagerecord component.Returns the value of thepostalCoderecord component.Returns the value of thepostOfficerecord component.Returns the value of thestairwellIdentificationrecord component.Returns the value of thestreetNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
MeteringPointAddress
public MeteringPointAddress(String addressNote, String apartment, String buildingNumber, String countryCode, String language, String postalCode, String postOffice, String stairwellIdentification, String streetName) Creates an instance of aMeteringPointAddressrecord class.- Parameters:
addressNote- the value for theaddressNoterecord componentapartment- the value for theapartmentrecord componentbuildingNumber- the value for thebuildingNumberrecord componentcountryCode- the value for thecountryCoderecord componentlanguage- the value for thelanguagerecord componentpostalCode- the value for thepostalCoderecord componentpostOffice- the value for thepostOfficerecord componentstairwellIdentification- the value for thestairwellIdentificationrecord componentstreetName- the value for thestreetNamerecord 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). -
addressNote
Returns the value of theaddressNoterecord component.- Specified by:
addressNotein interfaceAddress- Returns:
- the value of the
addressNoterecord component
-
apartment
Returns the value of theapartmentrecord component. -
buildingNumber
Returns the value of thebuildingNumberrecord component.- Specified by:
buildingNumberin interfaceAddress- Returns:
- the value of the
buildingNumberrecord component
-
countryCode
Returns the value of thecountryCoderecord component.- Returns:
- the value of the
countryCoderecord component
-
language
Returns the value of thelanguagerecord component.- Returns:
- the value of the
languagerecord component
-
postalCode
Returns the value of thepostalCoderecord component.- Specified by:
postalCodein interfaceAddress- Returns:
- the value of the
postalCoderecord component
-
postOffice
Returns the value of thepostOfficerecord component.- Specified by:
postOfficein interfaceAddress- Returns:
- the value of the
postOfficerecord component
-
stairwellIdentification
Returns the value of thestairwellIdentificationrecord component.- Specified by:
stairwellIdentificationin interfaceAddress- Returns:
- the value of the
stairwellIdentificationrecord component
-
streetName
Returns the value of thestreetNamerecord component.- Specified by:
streetNamein interfaceAddress- Returns:
- the value of the
streetNamerecord component
-