Record Class ParsedValueBlock
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.block.parsed.ParsedValueBlock
public record ParsedValueBlock(byte[] length, byte[] checksum, byte[] compressedValue)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionParsedValueBlock(byte[] length, byte[] checksum, byte[] compressedValue) Creates an instance of aParsedValueBlockrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]checksum()Returns the value of thechecksumrecord component.byte[]Returns the value of thecompressedValuerecord component.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.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ParsedValueBlock
public ParsedValueBlock(byte[] length, byte[] checksum, byte[] compressedValue) Creates an instance of aParsedValueBlockrecord class.- Parameters:
length- the value for thelengthrecord componentchecksum- the value for thechecksumrecord componentcompressedValue- the value for thecompressedValuerecord component
-
-
Method Details
-
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). -
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
-
compressedValue
public byte[] compressedValue()Returns the value of thecompressedValuerecord component.- Returns:
- the value of the
compressedValuerecord component
-