Record Class Address
java.lang.Object
java.lang.Record
energy.eddie.regionconnector.cds.providers.ap.Address
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncity()Returns the value of thecityrecord component.door()Returns the value of thedoorrecord component.final booleanIndicates whether some other object is "equal to" this one.floor()Returns the value of thefloorrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thehouseNumberrecord component.static AddressReturns the value of thestaircaserecord component.state()Returns the value of thestaterecord component.street()Returns the value of thestreetrecord component.suffix()Returns the value of thesuffixrecord component.final StringtoString()Returns a string representation of this record class.zip()Returns the value of theziprecord component.
-
Constructor Details
-
Address
public Address(String houseNumber, String street, String city, String state, String zip, @Nullable String staircase, @Nullable String floor, @Nullable String door, @Nullable String suffix) Creates an instance of aAddressrecord class.- Parameters:
houseNumber- the value for thehouseNumberrecord componentstreet- the value for thestreetrecord componentcity- the value for thecityrecord componentstate- the value for thestaterecord componentzip- the value for theziprecord componentstaircase- the value for thestaircaserecord componentfloor- the value for thefloorrecord componentdoor- the value for thedoorrecord componentsuffix- the value for thesuffixrecord component
-
-
Method Details
-
parse
-
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). -
houseNumber
Returns the value of thehouseNumberrecord component.- Returns:
- the value of the
houseNumberrecord component
-
street
Returns the value of thestreetrecord component.- Returns:
- the value of the
streetrecord component
-
city
Returns the value of thecityrecord component.- Returns:
- the value of the
cityrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
zip
Returns the value of theziprecord component.- Returns:
- the value of the
ziprecord component
-
staircase
Returns the value of thestaircaserecord component.- Returns:
- the value of the
staircaserecord component
-
floor
Returns the value of thefloorrecord component.- Returns:
- the value of the
floorrecord component
-
door
Returns the value of thedoorrecord component.- Returns:
- the value of the
doorrecord component
-
suffix
Returns the value of thesuffixrecord component.- Returns:
- the value of the
suffixrecord component
-