Record Class CAMetadataValueMatchType.MonetaryMatchType.WithCurrency
java.lang.Object
java.lang.Record
com.io7m.cardant.model.CAMetadataValueMatchType.MonetaryMatchType.WithCurrency
- Record Components:
currency- The currency value
- All Implemented Interfaces:
CAMetadataValueMatchType,CAMetadataValueMatchType.MonetaryMatchType
- Enclosing interface:
CAMetadataValueMatchType.MonetaryMatchType
public static record CAMetadataValueMatchType.MonetaryMatchType.WithCurrency(org.joda.money.CurrencyUnit currency)
extends Record
implements CAMetadataValueMatchType.MonetaryMatchType
Match metadata of a monetary type with values with the given
currency.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.io7m.cardant.model.CAMetadataValueMatchType
CAMetadataValueMatchType.AnyValue, CAMetadataValueMatchType.IntegralMatchType, CAMetadataValueMatchType.MonetaryMatchType, CAMetadataValueMatchType.RealMatchType, CAMetadataValueMatchType.TextMatchType, CAMetadataValueMatchType.TimeMatchTypeNested classes/interfaces inherited from interface com.io7m.cardant.model.CAMetadataValueMatchType.MonetaryMatchType
CAMetadataValueMatchType.MonetaryMatchType.WithCurrency, CAMetadataValueMatchType.MonetaryMatchType.WithinRange -
Constructor Summary
ConstructorsConstructorDescriptionWithCurrency(org.joda.money.CurrencyUnit currency) Match metadata of a monetary type with values with the given currency. -
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
-
WithCurrency
public WithCurrency(org.joda.money.CurrencyUnit currency) Match metadata of a monetary type with values with the given currency.- Parameters:
currency- The currency value
-
-
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
-