Record Class CustomerPostalAddress

java.lang.Object
java.lang.Record
energy.eddie.regionconnector.fi.fingrid.client.model.CustomerPostalAddress
All Implemented Interfaces:
Address

public record CustomerPostalAddress(String addressNote, String apartment, String buildingNumber, String countryCode, String poBox, String postalCode, String postOffice, String stairwellIdentification, String streetName) extends Record implements Address
  • Constructor Details

    • CustomerPostalAddress

      public CustomerPostalAddress(String addressNote, String apartment, String buildingNumber, String countryCode, String poBox, String postalCode, String postOffice, String stairwellIdentification, String streetName)
      Creates an instance of a CustomerPostalAddress record class.
      Parameters:
      addressNote - the value for the addressNote record component
      apartment - the value for the apartment record component
      buildingNumber - the value for the buildingNumber record component
      countryCode - the value for the countryCode record component
      poBox - the value for the poBox record component
      postalCode - the value for the postalCode record component
      postOffice - the value for the postOffice record component
      stairwellIdentification - the value for the stairwellIdentification record component
      streetName - the value for the streetName record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • addressNote

      public String addressNote()
      Returns the value of the addressNote record component.
      Specified by:
      addressNote in interface Address
      Returns:
      the value of the addressNote record component
    • apartment

      public String apartment()
      Returns the value of the apartment record component.
      Specified by:
      apartment in interface Address
      Returns:
      the value of the apartment record component
    • buildingNumber

      public String buildingNumber()
      Returns the value of the buildingNumber record component.
      Specified by:
      buildingNumber in interface Address
      Returns:
      the value of the buildingNumber record component
    • countryCode

      public String countryCode()
      Returns the value of the countryCode record component.
      Returns:
      the value of the countryCode record component
    • poBox

      public String poBox()
      Returns the value of the poBox record component.
      Returns:
      the value of the poBox record component
    • postalCode

      public String postalCode()
      Returns the value of the postalCode record component.
      Specified by:
      postalCode in interface Address
      Returns:
      the value of the postalCode record component
    • postOffice

      public String postOffice()
      Returns the value of the postOffice record component.
      Specified by:
      postOffice in interface Address
      Returns:
      the value of the postOffice record component
    • stairwellIdentification

      public String stairwellIdentification()
      Returns the value of the stairwellIdentification record component.
      Specified by:
      stairwellIdentification in interface Address
      Returns:
      the value of the stairwellIdentification record component
    • streetName

      public String streetName()
      Returns the value of the streetName record component.
      Specified by:
      streetName in interface Address
      Returns:
      the value of the streetName record component