Record Class BlockfileTokens
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.dto.BlockfileTokens
public record BlockfileTokens(BlockfileSection section, byte[] length, byte[] checksum, byte[] value)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBlockfileTokens(BlockfileSection section, byte[] length, byte[] checksum, byte[] value) Creates an instance of aBlockfileTokensrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]checksum()Returns the value of thechecksumrecord component.byte[]concat()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.byte[]length()Returns the value of thelengthrecord component.io.datarouter.scanner.Scanner<byte[]>scan()section()Returns the value of thesectionrecord component.List<byte[]>toList()final StringtoString()Returns a string representation of this record class.intbyte[]value()Returns the value of thevaluerecord component.
-
Constructor Details
-
BlockfileTokens
Creates an instance of aBlockfileTokensrecord class.- Parameters:
section- the value for thesectionrecord componentlength- the value for thelengthrecord componentchecksum- the value for thechecksumrecord componentvalue- the value for thevaluerecord component
-
-
Method Details
-
totalLength
public int totalLength() -
toList
-
scan
public io.datarouter.scanner.Scanner<byte[]> scan() -
concat
public byte[] concat() -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
section
Returns the value of thesectionrecord component.- Returns:
- the value of the
sectionrecord component
-
length
public byte[] length()Returns the value of thelengthrecord component.- Returns:
- the value of the
lengthrecord component
-
checksum
public byte[] checksum()Returns the value of thechecksumrecord component.- Returns:
- the value of the
checksumrecord component
-
value
public byte[] value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-