Record Class SerializedCardanoL1Transaction
java.lang.Object
java.lang.Record
org.cardanofoundation.lob.app.blockchain_publisher.domain.core.SerializedCardanoL1Transaction
-
Constructor Summary
ConstructorsConstructorDescriptionSerializedCardanoL1Transaction(byte[] txBytes, byte[] metadataCbor, String metadataJson) Creates an instance of aSerializedCardanoL1Transactionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.byte[]Returns the value of themetadataCborrecord component.Returns the value of themetadataJsonrecord component.final StringtoString()Returns a string representation of this record class.byte[]txBytes()Returns the value of thetxBytesrecord component.
-
Constructor Details
-
SerializedCardanoL1Transaction
Creates an instance of aSerializedCardanoL1Transactionrecord class.- Parameters:
txBytes- the value for thetxBytesrecord componentmetadataCbor- the value for themetadataCborrecord componentmetadataJson- the value for themetadataJsonrecord component
-
-
Method Details
-
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). -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. -
txBytes
public byte[] txBytes()Returns the value of thetxBytesrecord component.- Returns:
- the value of the
txBytesrecord component
-
metadataCbor
public byte[] metadataCbor()Returns the value of themetadataCborrecord component.- Returns:
- the value of the
metadataCborrecord component
-
metadataJson
Returns the value of themetadataJsonrecord component.- Returns:
- the value of the
metadataJsonrecord component
-