Record Class AddressCheckResource.AddressCheckBean
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.address.impl.action.AddressCheckResource.AddressCheckBean
- Enclosing class:
AddressCheckResource
-
Constructor Summary
ConstructorsConstructorDescriptionAddressCheckBean(String salutation, String correspondenceAddress, String deliveryAddress, String billingAddress) Creates an instance of aAddressCheckBeanrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebillingAddressrecord component.Returns the value of thecorrespondenceAddressrecord component.Returns the value of thedeliveryAddressrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesalutationrecord component.final StringtoString()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 aAddressCheckBeanrecord class.- Parameters:
salutation- the value for thesalutationrecord componentcorrespondenceAddress- the value for thecorrespondenceAddressrecord componentdeliveryAddress- the value for thedeliveryAddressrecord componentbillingAddress- the value for thebillingAddressrecord 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 thesalutationrecord component.- Returns:
- the value of the
salutationrecord component
-
correspondenceAddress
Returns the value of thecorrespondenceAddressrecord component.- Returns:
- the value of the
correspondenceAddressrecord component
-
deliveryAddress
Returns the value of thedeliveryAddressrecord component.- Returns:
- the value of the
deliveryAddressrecord component
-
billingAddress
Returns the value of thebillingAddressrecord component.- Returns:
- the value of the
billingAddressrecord component
-