Record Class BlockfileLocation
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.io.storage.BlockfileLocation
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBlockfileLocation(long from, int length) Creates an instance of aBlockfileLocationrecord 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.intlength()Returns the value of thelengthrecord component.longto()final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CODEC
-
-
Constructor Details
-
BlockfileLocation
public BlockfileLocation(long from, int length) Creates an instance of aBlockfileLocationrecord class.- Parameters:
from- the value for thefromrecord componentlength- the value for thelengthrecord component
-
-
Method Details
-
to
public long to() -
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
-
length
public int length()Returns the value of thelengthrecord component.- Returns:
- the value of the
lengthrecord component
-