Record Class BatchRequestResponse.BatchSuccess<T>
java.lang.Object
java.lang.Record
dev.langchain4j.model.googleai.BatchRequestResponse.BatchSuccess<T>
- All Implemented Interfaces:
BatchRequestResponse.BatchResponse<T>
- Enclosing class:
BatchRequestResponse
public static record BatchRequestResponse.BatchSuccess<T>(BatchRequestResponse.BatchName batchName, List<T> responses)
extends Record
implements BatchRequestResponse.BatchResponse<T>
Represents a successful batch operation.
-
Constructor Summary
ConstructorsConstructorDescriptionBatchSuccess(BatchRequestResponse.BatchName batchName, List<T> responses) Creates an instance of aBatchSuccessrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebatchNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theresponsesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
BatchSuccess
Creates an instance of aBatchSuccessrecord class.- Parameters:
batchName- the value for thebatchNamerecord componentresponses- the value for theresponsesrecord 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). -
batchName
Returns the value of thebatchNamerecord component.- Returns:
- the value of the
batchNamerecord component
-
responses
-