Package com.io7m.cardant.model
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
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
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
-