Record Class ResponseEntity<R,E>
java.lang.Object
java.lang.Record
org.springframework.ai.chat.client.ResponseEntity<R,E>
- Type Parameters:
R- the entire response type.E- the converted entity type.- Record Components:
response- the entire response object.entity- the converted entity object.
-
Constructor Summary
ConstructorsConstructorDescriptionResponseEntity(@Nullable R response, @Nullable E entity) Creates an instance of aResponseEntityrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable Eentity()Returns the value of theentityrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable E@Nullable Rfinal inthashCode()Returns a hash code value for this object.@Nullable Rresponse()Returns the value of theresponserecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ResponseEntity
-
-
Method Details
-
getResponse
-
getEntity
-
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). -
response
-
entity
-