Record Class SalePaidWithGiftVoucher
java.lang.Object
java.lang.Record
be.appify.prefab.example.sale.SalePaidWithGiftVoucher
public record SalePaidWithGiftVoucher(Reference<GiftVoucher> giftVoucher, BigDecimal amount)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSalePaidWithGiftVoucher(Reference<GiftVoucher> giftVoucher, BigDecimal amount) Creates an instance of aSalePaidWithGiftVoucherrecord class. -
Method Summary
Modifier and TypeMethodDescriptionamount()Returns the value of theamountrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegiftVoucherrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SalePaidWithGiftVoucher
Creates an instance of aSalePaidWithGiftVoucherrecord class.- Parameters:
giftVoucher- the value for thegiftVoucherrecord componentamount- the value for theamountrecord 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). -
giftVoucher
Returns the value of thegiftVoucherrecord component.- Returns:
- the value of the
giftVoucherrecord component
-
amount
Returns the value of theamountrecord component.- Returns:
- the value of the
amountrecord component
-