Record Class Interactions.RequestResponseEncountered
java.lang.Object
java.lang.Record
org.diabetestechnology.drh.service.http.Interactions.RequestResponseEncountered
- Enclosing class:
Interactions
public static record Interactions.RequestResponseEncountered(UUID interactionId, Interactions.Tenant tenant, Interactions.RequestEncountered request, Interactions.ResponseEncountered response)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRequestResponseEncountered
(UUID interactionId, Interactions.Tenant tenant, Interactions.RequestEncountered request, Interactions.ResponseEncountered response) Creates an instance of aRequestResponseEncountered
record class.RequestResponseEncountered
(Interactions.RequestEncountered request, Interactions.ResponseEncountered response) -
Method Summary
Modifier and TypeMethodDescriptionfinal 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 theinteractionId
record component.request()
Returns the value of therequest
record component.response()
Returns the value of theresponse
record component.tenant()
Returns the value of thetenant
record component.final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
RequestResponseEncountered
public RequestResponseEncountered(Interactions.RequestEncountered request, Interactions.ResponseEncountered response) -
RequestResponseEncountered
public RequestResponseEncountered(UUID interactionId, Interactions.Tenant tenant, Interactions.RequestEncountered request, Interactions.ResponseEncountered response) Creates an instance of aRequestResponseEncountered
record class.- Parameters:
interactionId
- the value for theinteractionId
record componenttenant
- the value for thetenant
record componentrequest
- the value for therequest
record componentresponse
- the value for theresponse
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)
. -
interactionId
Returns the value of theinteractionId
record component.- Returns:
- the value of the
interactionId
record component
-
tenant
Returns the value of thetenant
record component.- Returns:
- the value of the
tenant
record component
-
request
Returns the value of therequest
record component.- Returns:
- the value of the
request
record component
-
response
Returns the value of theresponse
record component.- Returns:
- the value of the
response
record component
-