Record Class AddressCheckResource.AddressCheckBean
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.address.impl.action.AddressCheckResource.AddressCheckBean
- Enclosing class:
AddressCheckResource
-
Constructor Summary
ConstructorDescriptionAddressCheckBean
(String salutation, String correspondenceAddress, String deliveryAddress, String billingAddress) Creates an instance of aAddressCheckBean
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebillingAddress
record component.Returns the value of thecorrespondenceAddress
record component.Returns the value of thedeliveryAddress
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thesalutation
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
AddressCheckBean
public AddressCheckBean(String salutation, String correspondenceAddress, String deliveryAddress, String billingAddress) Creates an instance of aAddressCheckBean
record class.- Parameters:
salutation
- the value for thesalutation
record componentcorrespondenceAddress
- the value for thecorrespondenceAddress
record componentdeliveryAddress
- the value for thedeliveryAddress
record componentbillingAddress
- the value for thebillingAddress
record 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)
. -
salutation
Returns the value of thesalutation
record component.- Returns:
- the value of the
salutation
record component
-
correspondenceAddress
Returns the value of thecorrespondenceAddress
record component.- Returns:
- the value of the
correspondenceAddress
record component
-
deliveryAddress
Returns the value of thedeliveryAddress
record component.- Returns:
- the value of the
deliveryAddress
record component
-
billingAddress
Returns the value of thebillingAddress
record component.- Returns:
- the value of the
billingAddress
record component
-