Record Class BlockfileBlockTokens<T>
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.dto.tokens.BlockfileBlockTokens<T>
- All Implemented Interfaces:
BlockfileTokens
public record BlockfileBlockTokens<T>(T inputItem, byte[] length, byte[] checksum, byte[] value)
extends Record
implements BlockfileTokens
-
Constructor Summary
ConstructorsConstructorDescriptionBlockfileBlockTokens(T inputItem, byte[] length, byte[] checksum, byte[] value) Creates an instance of aBlockfileBlockTokensrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]checksum()Returns the value of thechecksumrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinputItemrecord component.byte[]length()Returns the value of thelengthrecord component.section()List<byte[]> toList()final StringtoString()Returns a string representation of this record class.intbyte[]value()Returns the value of thevaluerecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.datarouter.bytes.blockfile.dto.BlockfileTokens
concat, scan
-
Constructor Details
-
BlockfileBlockTokens
Creates an instance of aBlockfileBlockTokensrecord class.- Parameters:
inputItem- the value for theinputItemrecord componentlength- the value for thelengthrecord componentchecksum- the value for thechecksumrecord componentvalue- the value for thevaluerecord component
-
-
Method Details
-
section
- Specified by:
sectionin interfaceBlockfileTokens
-
totalLength
public int totalLength()- Specified by:
totalLengthin interfaceBlockfileTokens
-
toList
- Specified by:
toListin interfaceBlockfileTokens
-
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). -
inputItem
Returns the value of theinputItemrecord component.- Returns:
- the value of the
inputItemrecord 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
-