Record Class CommitTransactionPayload.CandidateTransaction
java.lang.Object
java.lang.Record
org.opendaylight.controller.cluster.datastore.persisted.CommitTransactionPayload.CandidateTransaction
- Enclosing class:
CommitTransactionPayload
@NonNullByDefault
public static record CommitTransactionPayload.CandidateTransaction(TransactionIdentifier transactionId, DataTreeCandidate candidate, NormalizedNodeStreamVersion streamVersion)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionCandidateTransaction
(TransactionIdentifier transactionId, DataTreeCandidate candidate, NormalizedNodeStreamVersion streamVersion) Creates an instance of aCandidateTransaction
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecandidate
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thestreamVersion
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thetransactionId
record component.
-
Constructor Details
-
CandidateTransaction
public CandidateTransaction(TransactionIdentifier transactionId, DataTreeCandidate candidate, NormalizedNodeStreamVersion streamVersion) Creates an instance of aCandidateTransaction
record class.- Parameters:
transactionId
- the value for thetransactionId
record componentcandidate
- the value for thecandidate
record componentstreamVersion
- the value for thestreamVersion
record 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)
. -
transactionId
Returns the value of thetransactionId
record component.- Returns:
- the value of the
transactionId
record component
-
candidate
Returns the value of thecandidate
record component.- Returns:
- the value of the
candidate
record component
-
streamVersion
Returns the value of thestreamVersion
record component.- Returns:
- the value of the
streamVersion
record component
-