Record Class HttpContractRecorder.Contract
java.lang.Object
java.lang.Record
com.shaft.tools.io.internal.HttpContractRecorder.Contract
- Enclosing class:
HttpContractRecorder
public static record HttpContractRecorder.Contract(String schemaVersion, List<HttpContractRecorder.Interaction> interactions)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionContract(String schemaVersion, List<HttpContractRecorder.Interaction> interactions) Creates an instance of aContractrecord 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 theinteractionsrecord component.Returns the value of theschemaVersionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Contract
Creates an instance of aContractrecord class.- Parameters:
schemaVersion- the value for theschemaVersionrecord componentinteractions- the value for theinteractionsrecord 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). -
schemaVersion
Returns the value of theschemaVersionrecord component.- Returns:
- the value of the
schemaVersionrecord component
-
interactions
Returns the value of theinteractionsrecord component.- Returns:
- the value of the
interactionsrecord component
-