Record Class EconomyAnalytics.CirculationSnapshot
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.server.economy.capability.EconomyAnalytics.CirculationSnapshot
- Enclosing interface:
EconomyAnalytics
public static record EconomyAnalytics.CirculationSnapshot(Instant timestamp, Currency currency, BigDecimal totalCirculating, BigDecimal activeAccounts, BigDecimal totalFaucetInflow, BigDecimal totalSinkOutflow, BigDecimal inflationRate)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCirculationSnapshot(Instant timestamp, Currency currency, BigDecimal totalCirculating, BigDecimal activeAccounts, BigDecimal totalFaucetInflow, BigDecimal totalSinkOutflow, BigDecimal inflationRate) Creates an instance of aCirculationSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theactiveAccountsrecord 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.Returns the value of theinflationRaterecord component.Returns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetotalCirculatingrecord component.Returns the value of thetotalFaucetInflowrecord component.Returns the value of thetotalSinkOutflowrecord component.
-
Constructor Details
-
CirculationSnapshot
public CirculationSnapshot(Instant timestamp, Currency currency, BigDecimal totalCirculating, BigDecimal activeAccounts, BigDecimal totalFaucetInflow, BigDecimal totalSinkOutflow, BigDecimal inflationRate) Creates an instance of aCirculationSnapshotrecord class.- Parameters:
timestamp- the value for thetimestamprecord componentcurrency- the value for thecurrencyrecord componenttotalCirculating- the value for thetotalCirculatingrecord componentactiveAccounts- the value for theactiveAccountsrecord componenttotalFaucetInflow- the value for thetotalFaucetInflowrecord componenttotalSinkOutflow- the value for thetotalSinkOutflowrecord componentinflationRate- the value for theinflationRaterecord 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). -
timestamp
Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
currency
Returns the value of thecurrencyrecord component.- Returns:
- the value of the
currencyrecord component
-
totalCirculating
Returns the value of thetotalCirculatingrecord component.- Returns:
- the value of the
totalCirculatingrecord component
-
activeAccounts
Returns the value of theactiveAccountsrecord component.- Returns:
- the value of the
activeAccountsrecord component
-
totalFaucetInflow
Returns the value of thetotalFaucetInflowrecord component.- Returns:
- the value of the
totalFaucetInflowrecord component
-
totalSinkOutflow
Returns the value of thetotalSinkOutflowrecord component.- Returns:
- the value of the
totalSinkOutflowrecord component
-
inflationRate
Returns the value of theinflationRaterecord component.- Returns:
- the value of the
inflationRaterecord component
-