Package org.mockserver.llm.drift
Record Class DriftDetector.RecordedExchange
java.lang.Object
java.lang.Record
org.mockserver.llm.drift.DriftDetector.RecordedExchange
- Enclosing class:
- DriftDetector
public static record DriftDetector.RecordedExchange(HttpRequest recordedRequest, String recordedResponseBody)
extends Record
A recorded request and the body of its recorded response.
-
Constructor Summary
ConstructorsConstructorDescriptionRecordedExchange(HttpRequest recordedRequest, String recordedResponseBody) Creates an instance of aRecordedExchangerecord 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 therecordedRequestrecord component.Returns the value of therecordedResponseBodyrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RecordedExchange
Creates an instance of aRecordedExchangerecord class.- Parameters:
recordedRequest- the value for therecordedRequestrecord componentrecordedResponseBody- the value for therecordedResponseBodyrecord 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). -
recordedRequest
Returns the value of therecordedRequestrecord component.- Returns:
- the value of the
recordedRequestrecord component
-
recordedResponseBody
Returns the value of therecordedResponseBodyrecord component.- Returns:
- the value of the
recordedResponseBodyrecord component
-