Record Class CJ1MetadataValueMatchMonetaryWithCurrency
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.json.internal.CJ1MetadataValueMatchMonetaryWithCurrency
- All Implemented Interfaces:
CJ1MetadataValueMatchMonetaryType,CJ1MetadataValueMatchType,CJ1ValueType
@JsonClassDescription("Match monetary metadata values with the given currency.")
public record CJ1MetadataValueMatchMonetaryWithCurrency(org.joda.money.CurrencyUnit currency)
extends Record
implements CJ1MetadataValueMatchMonetaryType
-
Constructor Summary
ConstructorsConstructorDescriptionCJ1MetadataValueMatchMonetaryWithCurrency(org.joda.money.CurrencyUnit currency) Creates an instance of aCJ1MetadataValueMatchMonetaryWithCurrencyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionorg.joda.money.CurrencyUnitcurrency()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.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CJ1MetadataValueMatchMonetaryWithCurrency
public CJ1MetadataValueMatchMonetaryWithCurrency(@JsonPropertyDescription("The currency unit.") org.joda.money.CurrencyUnit currency) Creates an instance of aCJ1MetadataValueMatchMonetaryWithCurrencyrecord class.- Parameters:
currency- the value for thecurrencyrecord 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). -
currency
@JsonPropertyDescription("The currency unit.") public org.joda.money.CurrencyUnit currency()Returns the value of thecurrencyrecord component.- Returns:
- the value of the
currencyrecord component
-