Record Class CJ1MetadataValueMatchRealWithinRange
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.json.internal.CJ1MetadataValueMatchRealWithinRange
- All Implemented Interfaces:
CJ1MetadataValueMatchRealType,CJ1MetadataValueMatchType,CJ1ValueType
@JsonClassDescription("Match a real metadata value within the given range.")
public record CJ1MetadataValueMatchRealWithinRange(double lower, double upper)
extends Record
implements CJ1MetadataValueMatchRealType
-
Constructor Summary
ConstructorsConstructorDescriptionCJ1MetadataValueMatchRealWithinRange(double lower, double upper) Creates an instance of aCJ1MetadataValueMatchRealWithinRangerecord 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.doublelower()Returns the value of thelowerrecord component.final StringtoString()Returns a string representation of this record class.doubleupper()Returns the value of theupperrecord component.
-
Constructor Details
-
CJ1MetadataValueMatchRealWithinRange
public CJ1MetadataValueMatchRealWithinRange(@JsonPropertyDescription("The lower bound.") double lower, @JsonPropertyDescription("The upper bound.") double upper) Creates an instance of aCJ1MetadataValueMatchRealWithinRangerecord 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 double lower()Returns the value of thelowerrecord component.- Returns:
- the value of the
lowerrecord component
-
upper
@JsonPropertyDescription("The upper bound.") public double upper()Returns the value of theupperrecord component.- Returns:
- the value of the
upperrecord component
-