Record Class BlockfileWriter.BlockfileWriteResult
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.write.BlockfileWriter.BlockfileWriteResult
- Enclosing class:
BlockfileWriter<T>
public static record BlockfileWriter.BlockfileWriteResult(long numDataBlocks, ByteLength fileLength)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBlockfileWriteResult(long numDataBlocks, ByteLength fileLength) Creates an instance of aBlockfileWriteResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thefileLengthrecord component.final inthashCode()Returns a hash code value for this object.longReturns the value of thenumDataBlocksrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockfileWriteResult
Creates an instance of aBlockfileWriteResultrecord class.- Parameters:
numDataBlocks- the value for thenumDataBlocksrecord componentfileLength- the value for thefileLengthrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
numDataBlocks
public long numDataBlocks()Returns the value of thenumDataBlocksrecord component.- Returns:
- the value of the
numDataBlocksrecord component
-
fileLength
Returns the value of thefileLengthrecord component.- Returns:
- the value of the
fileLengthrecord component
-