Record Class TaxService.TaxReceipt
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.server.economy.capability.TaxService.TaxReceipt
- Enclosing interface:
TaxService
public static record TaxService.TaxReceipt(BigDecimal originalAmount, BigDecimal taxAmount, BigDecimal finalAmount, Account taxPool)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTaxReceipt(BigDecimal originalAmount, BigDecimal taxAmount, BigDecimal finalAmount, Account taxPool) Creates an instance of aTaxReceiptrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefinalAmountrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theoriginalAmountrecord component.Returns the value of thetaxAmountrecord component.taxPool()Returns the value of thetaxPoolrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TaxReceipt
public TaxReceipt(BigDecimal originalAmount, BigDecimal taxAmount, BigDecimal finalAmount, Account taxPool) Creates an instance of aTaxReceiptrecord class.- Parameters:
originalAmount- the value for theoriginalAmountrecord componenttaxAmount- the value for thetaxAmountrecord componentfinalAmount- the value for thefinalAmountrecord componenttaxPool- the value for thetaxPoolrecord 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). -
originalAmount
Returns the value of theoriginalAmountrecord component.- Returns:
- the value of the
originalAmountrecord component
-
taxAmount
Returns the value of thetaxAmountrecord component.- Returns:
- the value of the
taxAmountrecord component
-
finalAmount
Returns the value of thefinalAmountrecord component.- Returns:
- the value of the
finalAmountrecord component
-
taxPool
Returns the value of thetaxPoolrecord component.- Returns:
- the value of the
taxPoolrecord component
-