Record Class ProcessResult
java.lang.Object
java.lang.Record
thc.runtime.ProcessResult
Zero errno preserves the sticky guest error. Null exitCode leaves the output cell untouched.
-
Constructor Summary
ConstructorsConstructorDescriptionProcessResult(int status, Integer exitCode, int errno) Creates an instance of aProcessResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.interrno()Returns the value of theerrnorecord component.exitCode()Returns the value of theexitCoderecord component.intgetErrno()intfinal inthashCode()Returns a hash code value for this object.intstatus()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProcessResult
Creates an instance of aProcessResultrecord class.- Parameters:
status- the value for thestatusrecord componentexitCode- the value for theexitCoderecord componenterrno- the value for theerrnorecord component
-
-
Method Details
-
getStatus
-
getExitCode
-
getErrno
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
exitCode
-
errno
Returns the value of theerrnorecord component.- Returns:
- the value of the
errnorecord component
-