Record Class CJ1SizeRange
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.json.internal.CJ1SizeRange
- All Implemented Interfaces:
CJ1ValueType
public record CJ1SizeRange(CJ1UnsignedLong sizeMinimum, CJ1UnsignedLong sizeMaximum)
extends Record
implements CJ1ValueType
-
Constructor Summary
ConstructorsConstructorDescriptionCJ1SizeRange(CJ1UnsignedLong sizeMinimum, CJ1UnsignedLong sizeMaximum) Creates an instance of aCJ1SizeRangerecord 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.Returns the value of thesizeMaximumrecord component.Returns the value of thesizeMinimumrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CJ1SizeRange
public CJ1SizeRange(@JsonPropertyDescription("The inclusive lower bound.") CJ1UnsignedLong sizeMinimum, @JsonPropertyDescription("The inclusive upper bound.") CJ1UnsignedLong sizeMaximum) Creates an instance of aCJ1SizeRangerecord class.- Parameters:
sizeMinimum- the value for thesizeMinimumrecord componentsizeMaximum- the value for thesizeMaximumrecord 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). -
sizeMinimum
Returns the value of thesizeMinimumrecord component.- Returns:
- the value of the
sizeMinimumrecord component
-
sizeMaximum
Returns the value of thesizeMaximumrecord component.- Returns:
- the value of the
sizeMaximumrecord component
-