Record Class TaxService.TaxBracket
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.server.economy.capability.TaxService.TaxBracket
- Enclosing interface:
TaxService
public static record TaxService.TaxBracket(BigDecimal minAmount, BigDecimal maxAmount, BigDecimal rate)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionTaxBracket(BigDecimal minAmount, BigDecimal maxAmount, BigDecimal rate) Creates an instance of aTaxBracketrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themaxAmountrecord component.Returns the value of theminAmountrecord component.rate()Returns the value of theraterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TaxBracket
Creates an instance of aTaxBracketrecord class.- Parameters:
minAmount- the value for theminAmountrecord componentmaxAmount- the value for themaxAmountrecord componentrate- the value for theraterecord 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). -
minAmount
Returns the value of theminAmountrecord component.- Returns:
- the value of the
minAmountrecord component
-
maxAmount
Returns the value of themaxAmountrecord component.- Returns:
- the value of the
maxAmountrecord component
-
rate
Returns the value of theraterecord component.- Returns:
- the value of the
raterecord component
-