Package io.datarouter.storage.node
Record Class DatabeanToBlobCodec.PathBbeanKeyAndValue
java.lang.Object
java.lang.Record
io.datarouter.storage.node.DatabeanToBlobCodec.PathBbeanKeyAndValue
- Enclosing class:
- DatabeanToBlobCodec<PK extends io.datarouter.model.key.primary.PrimaryKey<PK>,
D extends io.datarouter.model.databean.Databean<PK, D>, F extends io.datarouter.model.serialize.fielder.DatabeanFielder<PK, D>>
public static record DatabeanToBlobCodec.PathBbeanKeyAndValue(PathbeanKey pathbeanKey, byte[] value)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPathBbeanKeyAndValue(PathbeanKey pathbeanKey, byte[] value) Creates an instance of aPathBbeanKeyAndValuerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thepathbeanKeyrecord component.final StringtoString()Returns a string representation of this record class.byte[]value()Returns the value of thevaluerecord component.
-
Constructor Details
-
PathBbeanKeyAndValue
Creates an instance of aPathBbeanKeyAndValuerecord class.- Parameters:
pathbeanKey- the value for thepathbeanKeyrecord componentvalue- the value for thevaluerecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
pathbeanKey
Returns the value of thepathbeanKeyrecord component.- Returns:
- the value of the
pathbeanKeyrecord component
-
value
public byte[] value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-