Record Class BlockfileIndexEntryRange
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.index.BlockfileIndexEntryRange
public record BlockfileIndexEntryRange(BlockfileIndexEntry first, BlockfileIndexEntry last)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aBlockfileIndexEntryRangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.first()Returns the value of thefirstrecord component.final inthashCode()Returns a hash code value for this object.last()Returns the value of thelastrecord component.longfinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockfileIndexEntryRange
Creates an instance of aBlockfileIndexEntryRangerecord class.- Parameters:
first- the value for thefirstrecord componentlast- the value for thelastrecord component
-
-
Method Details
-
numBlocks
public long numBlocks() -
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). -
first
Returns the value of thefirstrecord component.- Returns:
- the value of the
firstrecord component
-
last
Returns the value of thelastrecord component.- Returns:
- the value of the
lastrecord component
-