Record Class CJ1MetadataValueMatchMonetaryWithinRange
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.json.internal.CJ1MetadataValueMatchMonetaryWithinRange
- All Implemented Interfaces:
CJ1MetadataValueMatchMonetaryType, CJ1MetadataValueMatchType, CJ1ValueType
@JsonClassDescription("Match a monetary metadata value within the given range.")
public record CJ1MetadataValueMatchMonetaryWithinRange(BigDecimal lower, BigDecimal upper)
extends Record
implements CJ1MetadataValueMatchMonetaryType
-
Constructor Summary
ConstructorsConstructorDescriptionCJ1MetadataValueMatchMonetaryWithinRange(BigDecimal lower, BigDecimal upper) Creates an instance of aCJ1MetadataValueMatchMonetaryWithinRangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.lower()Returns the value of thelowerrecord component.final StringtoString()Returns a string representation of this record class.upper()Returns the value of theupperrecord component.
-
Constructor Details
-
CJ1MetadataValueMatchMonetaryWithinRange
public CJ1MetadataValueMatchMonetaryWithinRange(@JsonPropertyDescription("The lower bound.") BigDecimal lower, @JsonPropertyDescription("The upper bound.") BigDecimal upper) Creates an instance of aCJ1MetadataValueMatchMonetaryWithinRangerecord class.- Parameters:
lower- the value for thelowerrecord componentupper- the value for theupperrecord 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). -
lower
Returns the value of thelowerrecord component.- Returns:
- the value of the
lowerrecord component
-
upper
Returns the value of theupperrecord component.- Returns:
- the value of the
upperrecord component
-