Record Class SaleAddCustomerRequest
java.lang.Object
java.lang.Record
be.appify.prefab.example.sale.application.SaleAddCustomerRequest
-
Constructor Summary
ConstructorsConstructorDescriptionSaleAddCustomerRequest(@Valid String customer) Creates an instance of aSaleAddCustomerRequestrecord class. -
Method Summary
Modifier and TypeMethodDescription@Valid Stringcustomer()Returns the value of thecustomerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SaleAddCustomerRequest
Creates an instance of aSaleAddCustomerRequestrecord class.- Parameters:
customer- the value for thecustomerrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
customer
Returns the value of thecustomerrecord component.- Returns:
- the value of the
customerrecord component
-