Record Class L1Submission
java.lang.Object
java.lang.Record
org.cardanofoundation.lob.app.blockchain_publisher.domain.core.L1Submission
-
Constructor Summary
ConstructorsConstructorDescriptionL1Submission(String txHash, Optional<Long> absoluteSlot, boolean confirmed) Creates an instance of aL1Submissionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theabsoluteSlotrecord component.booleanReturns the value of theconfirmedrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.txHash()Returns the value of thetxHashrecord component.
-
Constructor Details
-
L1Submission
Creates an instance of aL1Submissionrecord class.- Parameters:
txHash- the value for thetxHashrecord componentabsoluteSlot- the value for theabsoluteSlotrecord componentconfirmed- the value for theconfirmedrecord 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 '=='. -
txHash
Returns the value of thetxHashrecord component.- Returns:
- the value of the
txHashrecord component
-
absoluteSlot
Returns the value of theabsoluteSlotrecord component.- Returns:
- the value of the
absoluteSlotrecord component
-
confirmed
public boolean confirmed()Returns the value of theconfirmedrecord component.- Returns:
- the value of the
confirmedrecord component
-