Record Class CodePoolExecutorService.TaskResponse
java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.service.code.CodePoolExecutorService.TaskResponse
- Enclosing interface:
- CodePoolExecutorService
-
Constructor Summary
ConstructorsConstructorDescriptionTaskResponse(boolean isSuccess, String stdOut, String stdErr, String exceptionMsg) Creates an instance of aTaskResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexceptionMsgrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisSuccessrecord component.stdErr()Returns the value of thestdErrrecord component.stdOut()Returns the value of thestdOutrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
TaskResponse
Creates an instance of aTaskResponserecord class.- Parameters:
isSuccess- the value for theisSuccessrecord componentstdOut- the value for thestdOutrecord componentstdErr- the value for thestdErrrecord componentexceptionMsg- the value for theexceptionMsgrecord component
-
-
Method Details
-
error
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
isSuccess
public boolean isSuccess()Returns the value of theisSuccessrecord component.- Returns:
- the value of the
isSuccessrecord component
-
stdOut
Returns the value of thestdOutrecord component.- Returns:
- the value of the
stdOutrecord component
-
stdErr
Returns the value of thestdErrrecord component.- Returns:
- the value of the
stdErrrecord component
-
exceptionMsg
Returns the value of theexceptionMsgrecord component.- Returns:
- the value of the
exceptionMsgrecord component
-