Record Class CJ1MetadataValueMatchIntegralWithinRange
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.json.internal.CJ1MetadataValueMatchIntegralWithinRange
- All Implemented Interfaces:
CJ1MetadataValueMatchIntegralType,CJ1MetadataValueMatchType,CJ1ValueType
@JsonClassDescription("Match an integral metadata value within the given range.")
public record CJ1MetadataValueMatchIntegralWithinRange(long lower, long upper)
extends Record
implements CJ1MetadataValueMatchIntegralType
-
Constructor Summary
ConstructorsConstructorDescriptionCJ1MetadataValueMatchIntegralWithinRange(long lower, long upper) Creates an instance of aCJ1MetadataValueMatchIntegralWithinRangerecord 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.longlower()Returns the value of thelowerrecord component.final StringtoString()Returns a string representation of this record class.longupper()Returns the value of theupperrecord component.
-
Constructor Details
-
CJ1MetadataValueMatchIntegralWithinRange
public CJ1MetadataValueMatchIntegralWithinRange(@JsonPropertyDescription("The lower bound.") long lower, @JsonPropertyDescription("The upper bound.") long upper) Creates an instance of aCJ1MetadataValueMatchIntegralWithinRangerecord 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 with thecomparemethod from their corresponding wrapper classes. -
lower
@JsonPropertyDescription("The lower bound.") public long lower()Returns the value of thelowerrecord component.- Returns:
- the value of the
lowerrecord component
-
upper
@JsonPropertyDescription("The upper bound.") public long upper()Returns the value of theupperrecord component.- Returns:
- the value of the
upperrecord component
-