Record Class CAI1SizeRange
java.lang.Object
java.lang.Record
com.io7m.cardant.protocol.inventory.cb.CAI1SizeRange
- Record Components:
fieldSizeMinimum- The lower bound (inclusive).fieldSizeMaximum- The upper bound (inclusive).
- All Implemented Interfaces:
com.io7m.cedarbridge.runtime.api.CBSerializableType
public record CAI1SizeRange(com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned64 fieldSizeMinimum, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned64 fieldSizeMaximum)
extends Record
implements com.io7m.cedarbridge.runtime.api.CBSerializableType
A size range.
-
Constructor Summary
ConstructorsConstructorDescriptionCAI1SizeRange(com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned64 fieldSizeMinimum, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned64 fieldSizeMaximum) Creates an instance of aCAI1SizeRangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic CAI1SizeRangedeserialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context) Deserialize a value of type CAI1SizeRange.final booleanIndicates whether some other object is "equal to" this one.com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned64Returns the value of thefieldSizeMaximumrecord component.com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned64Returns the value of thefieldSizeMinimumrecord component.final inthashCode()Returns a hash code value for this object.static voidserialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context, CAI1SizeRange $x) Serialize a value of type CAI1SizeRange.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CAI1SizeRange
public CAI1SizeRange(com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned64 fieldSizeMinimum, com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned64 fieldSizeMaximum) Creates an instance of aCAI1SizeRangerecord class.- Parameters:
fieldSizeMinimum- the value for thefieldSizeMinimumrecord componentfieldSizeMaximum- the value for thefieldSizeMaximumrecord component
-
-
Method Details
-
serialize
public static void serialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context, CAI1SizeRange $x) throws IOException Serialize a value of type CAI1SizeRange.- Parameters:
$context- The serialization context.$x- The value to be serialized.- Throws:
IOException
-
deserialize
public static CAI1SizeRange deserialize(com.io7m.cedarbridge.runtime.api.CBSerializationContextType $context) throws IOException Deserialize a value of type CAI1SizeRange.- Parameters:
$context- The serialization context.- Returns:
- A value of type CAI1SizeRange.
- Throws:
IOException
-
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). -
fieldSizeMinimum
public com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned64 fieldSizeMinimum()Returns the value of thefieldSizeMinimumrecord component.- Returns:
- the value of the
fieldSizeMinimumrecord component
-
fieldSizeMaximum
public com.io7m.cedarbridge.runtime.api.CBIntegerUnsigned64 fieldSizeMaximum()Returns the value of thefieldSizeMaximumrecord component.- Returns:
- the value of the
fieldSizeMaximumrecord component
-