Record Class Address
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.fr.enedis.dto.address.Address
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncity()Returns the value of thecityrecord component.country()Returns the value of thecountryrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegeoPointsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theinseeCoderecord component.locality()Returns the value of thelocalityrecord component.Returns the value of thepostalCoderecord component.street()Returns the value of thestreetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Address
public Address(String street, String locality, String postalCode, String inseeCode, String city, String country, GeoPoint geoPoints) Creates an instance of aAddressrecord class.- Parameters:
street- the value for thestreetrecord componentlocality- the value for thelocalityrecord componentpostalCode- the value for thepostalCoderecord componentinseeCode- the value for theinseeCoderecord componentcity- the value for thecityrecord componentcountry- the value for thecountryrecord componentgeoPoints- the value for thegeoPointsrecord 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). -
street
Returns the value of thestreetrecord component.- Returns:
- the value of the
streetrecord component
-
locality
Returns the value of thelocalityrecord component.- Returns:
- the value of the
localityrecord component
-
postalCode
Returns the value of thepostalCoderecord component.- Returns:
- the value of the
postalCoderecord component
-
inseeCode
Returns the value of theinseeCoderecord component.- Returns:
- the value of the
inseeCoderecord component
-
city
Returns the value of thecityrecord component.- Returns:
- the value of the
cityrecord component
-
country
Returns the value of thecountryrecord component.- Returns:
- the value of the
countryrecord component
-
geoPoints
Returns the value of thegeoPointsrecord component.- Returns:
- the value of the
geoPointsrecord component
-