Record Class BlockfileByteRange
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.index.BlockfileByteRange
-
Constructor Summary
ConstructorsConstructorDescriptionBlockfileByteRange(long from, long to) Creates an instance of aBlockfileByteRangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.longfrom()Returns the value of thefromrecord component.final inthashCode()Returns a hash code value for this object.intlongto()Returns the value of thetorecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockfileByteRange
public BlockfileByteRange(long from, long to) Creates an instance of aBlockfileByteRangerecord class.- Parameters:
from- the value for thefromrecord componentto- the value for thetorecord component
-
-
Method Details
-
lengthInt
public int lengthInt() -
toLocation
-
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 '=='. -
from
public long from()Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
to
public long to()Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-