Package com.patelheet.capitalengine.api
Record Class PolicyStatus
java.lang.Object
java.lang.Record
com.patelheet.capitalengine.api.PolicyStatus
- Record Components:
issueRemainingToday- coins it may still create todaytreasuryRemainingToday- coins it may still take from the Treasury todaydenied- the owner has denied this plugin from moving money without a counterparty
public record PolicyStatus(long issueRemainingToday, long treasuryRemainingToday, boolean denied)
extends Record
A plugin's remaining owner-set limits today.
Long.MAX_VALUE means unlimited.-
Constructor Summary
ConstructorsConstructorDescriptionPolicyStatus(long issueRemainingToday, long treasuryRemainingToday, boolean denied) Creates an instance of aPolicyStatusrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleandenied()Returns the value of thedeniedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.longReturns the value of theissueRemainingTodayrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetreasuryRemainingTodayrecord component.
-
Constructor Details
-
PolicyStatus
public PolicyStatus(long issueRemainingToday, long treasuryRemainingToday, boolean denied) Creates an instance of aPolicyStatusrecord class.- Parameters:
issueRemainingToday- the value for theissueRemainingTodayrecord componenttreasuryRemainingToday- the value for thetreasuryRemainingTodayrecord componentdenied- the value for thedeniedrecord 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 '=='. -
issueRemainingToday
public long issueRemainingToday()Returns the value of theissueRemainingTodayrecord component.- Returns:
- the value of the
issueRemainingTodayrecord component
-
treasuryRemainingToday
public long treasuryRemainingToday()Returns the value of thetreasuryRemainingTodayrecord component.- Returns:
- the value of the
treasuryRemainingTodayrecord component
-
denied
public boolean denied()Returns the value of thedeniedrecord component.- Returns:
- the value of the
deniedrecord component
-