Record Class ContractOfferJson.FinanceJson
java.lang.Object
java.lang.Record
mekhq.campaign.mission.contract.io.ContractOfferJson.FinanceJson
- Enclosing class:
ContractOfferJson
public static record ContractOfferJson.FinanceJson(@Nullable BigDecimal transport, @Nullable BigDecimal monthlyPay, @Nullable BigDecimal combatPay)
extends Record
The offer's payments, in the default currency.
-
Constructor Summary
ConstructorsConstructorDescriptionFinanceJson(BigDecimal transport, BigDecimal monthlyPay, BigDecimal combatPay) Creates an instance of aFinanceJsonrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecombatPayrecord 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 themonthlyPayrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransportrecord component.
-
Constructor Details
-
FinanceJson
public FinanceJson(@Nullable BigDecimal transport, @Nullable BigDecimal monthlyPay, @Nullable BigDecimal combatPay) Creates an instance of aFinanceJsonrecord class.- Parameters:
transport- the value for thetransportrecord componentmonthlyPay- the value for themonthlyPayrecord componentcombatPay- the value for thecombatPayrecord 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 withObjects::equals(Object,Object). -
transport
Returns the value of thetransportrecord component.- Returns:
- the value of the
transportrecord component
-
monthlyPay
Returns the value of themonthlyPayrecord component.- Returns:
- the value of the
monthlyPayrecord component
-
combatPay
Returns the value of thecombatPayrecord component.- Returns:
- the value of the
combatPayrecord component
-