Record Class CoreCompactFormat.Span
java.lang.Object
java.lang.Record
thc.CoreCompactFormat.Span
- Enclosing class:
CoreCompactFormat
-
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.longlength()Returns the value of thelengthrecord component.longoffset()Returns the value of theoffsetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Span
Creates an instance of aSpanrecord class.- Parameters:
offset- the value for theoffsetrecord componentlength- the value for thelengthrecord 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. -
offset
Returns the value of theoffsetrecord component.- Returns:
- the value of the
offsetrecord component
-
length
Returns the value of thelengthrecord component.- Returns:
- the value of the
lengthrecord component
-