Record Class BlockfileValueBlockIdRange
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.index.BlockfileValueBlockIdRange
-
Constructor Summary
ConstructorsConstructorDescriptionBlockfileValueBlockIdRange(long first, long last) Creates an instance of aBlockfileValueBlockIdRangerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(long valueBlockId) final booleanIndicates whether some other object is "equal to" this one.longfirst()Returns the value of thefirstrecord component.final inthashCode()Returns a hash code value for this object.longlast()Returns the value of thelastrecord component.static BlockfileValueBlockIdRangesingleBlock(long valueBlockId) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockfileValueBlockIdRange
public BlockfileValueBlockIdRange(long first, long last) Creates an instance of aBlockfileValueBlockIdRangerecord class.- Parameters:
first- the value for thefirstrecord componentlast- the value for thelastrecord component
-
-
Method Details
-
singleBlock
-
compareTo
public int compareTo(long valueBlockId) -
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 '=='. -
first
public long first()Returns the value of thefirstrecord component.- Returns:
- the value of the
firstrecord component
-
last
public long last()Returns the value of thelastrecord component.- Returns:
- the value of the
lastrecord component
-