Record Class InterestService.InterestProfile
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.server.economy.capability.InterestService.InterestProfile
- Enclosing interface:
InterestService
-
Constructor Summary
ConstructorsConstructorDescriptionInterestProfile(Account account, Currency currency, BigDecimal rate, Duration interval, Instant lastApplied, boolean isCustomRate) Creates an instance of aInterestProfilerecord class. -
Method Summary
Modifier and TypeMethodDescriptionaccount()Returns the value of theaccountrecord component.currency()Returns the value of thecurrencyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.interval()Returns the value of theintervalrecord component.booleanReturns the value of theisCustomRaterecord component.Returns the value of thelastAppliedrecord component.rate()Returns the value of theraterecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
InterestProfile
public InterestProfile(Account account, Currency currency, BigDecimal rate, Duration interval, Instant lastApplied, boolean isCustomRate) Creates an instance of aInterestProfilerecord class.- Parameters:
account- the value for theaccountrecord componentcurrency- the value for thecurrencyrecord componentrate- the value for theraterecord componentinterval- the value for theintervalrecord componentlastApplied- the value for thelastAppliedrecord componentisCustomRate- the value for theisCustomRaterecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
account
Returns the value of theaccountrecord component.- Returns:
- the value of the
accountrecord component
-
currency
Returns the value of thecurrencyrecord component.- Returns:
- the value of the
currencyrecord component
-
rate
Returns the value of theraterecord component.- Returns:
- the value of the
raterecord component
-
interval
Returns the value of theintervalrecord component.- Returns:
- the value of the
intervalrecord component
-
lastApplied
Returns the value of thelastAppliedrecord component.- Returns:
- the value of the
lastAppliedrecord component
-
isCustomRate
public boolean isCustomRate()Returns the value of theisCustomRaterecord component.- Returns:
- the value of the
isCustomRaterecord component
-