Package com.patelheet.capitalengine.api
Record Class PluginFlow
java.lang.Object
java.lang.Record
com.patelheet.capitalengine.api.PluginFlow
- Record Components:
issued- newly created coinsdestroyed- destroyed coinstreasuryIn- coins paid into the TreasurytreasuryOut- coins paid out of the Treasurytransferred- coins moved between ordinary accounts
public record PluginFlow(long issued, long destroyed, long treasuryIn, long treasuryOut, long transferred)
extends Record
One plugin's money flows for the current economic day.
-
Constructor Summary
ConstructorsConstructorDescriptionPluginFlow(long issued, long destroyed, long treasuryIn, long treasuryOut, long transferred) Creates an instance of aPluginFlowrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedestroyedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longissued()Returns the value of theissuedrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetransferredrecord component.longReturns the value of thetreasuryInrecord component.longReturns the value of thetreasuryOutrecord component.
-
Constructor Details
-
PluginFlow
public PluginFlow(long issued, long destroyed, long treasuryIn, long treasuryOut, long transferred) Creates an instance of aPluginFlowrecord class.- Parameters:
issued- the value for theissuedrecord componentdestroyed- the value for thedestroyedrecord componenttreasuryIn- the value for thetreasuryInrecord componenttreasuryOut- the value for thetreasuryOutrecord componenttransferred- the value for thetransferredrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 with '=='. -
issued
public long issued()Returns the value of theissuedrecord component.- Returns:
- the value of the
issuedrecord component
-
destroyed
public long destroyed()Returns the value of thedestroyedrecord component.- Returns:
- the value of the
destroyedrecord component
-
treasuryIn
public long treasuryIn()Returns the value of thetreasuryInrecord component.- Returns:
- the value of the
treasuryInrecord component
-
treasuryOut
public long treasuryOut()Returns the value of thetreasuryOutrecord component.- Returns:
- the value of the
treasuryOutrecord component
-
transferred
public long transferred()Returns the value of thetransferredrecord component.- Returns:
- the value of the
transferredrecord component
-