Record Class CASizeRange
java.lang.Object
java.lang.Record
com.io7m.cardant.model.CASizeRange
- Record Components:
sizeMinimum- The minimum size (inclusive)sizeMaximum- The maximum size (inclusive)
A range of sizes in octets.
-
Constructor Summary
Constructors -
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.longReturns the value of thesizeMaximumrecord component.longReturns the value of thesizeMinimumrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CASizeRange
public CASizeRange(long sizeMinimum, long sizeMaximum) A range of sizes in octets.- Parameters:
sizeMinimum- The minimum size (inclusive)sizeMaximum- The maximum size (inclusive)
-
-
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. -
sizeMinimum
public long sizeMinimum()Returns the value of thesizeMinimumrecord component.- Returns:
- the value of the
sizeMinimumrecord component
-
sizeMaximum
public long sizeMaximum()Returns the value of thesizeMaximumrecord component.- Returns:
- the value of the
sizeMaximumrecord component
-