Record Class CorrelatedTransaction
java.lang.Object
java.lang.Record
com.shaft.capture.generate.api.CorrelatedTransaction
- Record Components:
transaction- the source transaction, unchangedleaves- this transaction's response leaves, with correlated upgrades applied; unmatched volatile leaves are left asVOLATILEso codegen falls back to the recorded literalusesByJsonPath- for eachCORRELATEDleaf'sjsonPath, every later request location that reuses its value
public record CorrelatedTransaction(ApiTransaction transaction, List<ResponseLeaf> leaves, Map<String, List<CorrelationUse>> usesByJsonPath)
extends Record
One transaction's response leaves after
TransactionCorrelator has run, with any
VOLATILE leaf found reused by a later request upgraded to
LeafClassification.CORRELATED.-
Constructor Summary
ConstructorsConstructorDescriptionCorrelatedTransaction(ApiTransaction transaction, List<ResponseLeaf> leaves, Map<String, List<CorrelationUse>> usesByJsonPath) Creates an instance of aCorrelatedTransactionrecord 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.leaves()Returns the value of theleavesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thetransactionrecord component.Returns the value of theusesByJsonPathrecord component.
-
Constructor Details
-
CorrelatedTransaction
public CorrelatedTransaction(ApiTransaction transaction, List<ResponseLeaf> leaves, Map<String, List<CorrelationUse>> usesByJsonPath) Creates an instance of aCorrelatedTransactionrecord class.- Parameters:
transaction- the value for thetransactionrecord componentleaves- the value for theleavesrecord componentusesByJsonPath- the value for theusesByJsonPathrecord component
-
-
Method Details
-
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). -
transaction
Returns the value of thetransactionrecord component.- Returns:
- the value of the
transactionrecord component
-
leaves
-
usesByJsonPath
Returns the value of theusesByJsonPathrecord component.- Returns:
- the value of the
usesByJsonPathrecord component
-