Record Class BlockfileValueBlockFormat
java.lang.Object
java.lang.Record
io.datarouter.bytes.blockfile.encoding.valueblock.BlockfileValueBlockFormat
public record BlockfileValueBlockFormat(String encodedName, Supplier<BlockfileValueBlockCodec> supplier)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionBlockfileValueBlockFormat(String encodedName, Supplier<BlockfileValueBlockCodec> supplier) Creates an instance of aBlockfileValueBlockFormatrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringbytesToName(byte[] bytes) Returns the value of theencodedNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.byte[]newCodec()supplier()Returns the value of thesupplierrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BlockfileValueBlockFormat
Creates an instance of aBlockfileValueBlockFormatrecord class.- Parameters:
encodedName- the value for theencodedNamerecord componentsupplier- the value for thesupplierrecord component
-
-
Method Details
-
nameToBytes
public byte[] nameToBytes() -
bytesToName
-
newCodec
-
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). -
encodedName
Returns the value of theencodedNamerecord component.- Returns:
- the value of the
encodedNamerecord component
-
supplier
Returns the value of thesupplierrecord component.- Returns:
- the value of the
supplierrecord component
-