Package com.tnsai.coordination.roma
Record Class RecursiveTaskSolver.SolveResult
java.lang.Object
java.lang.Record
com.tnsai.coordination.roma.RecursiveTaskSolver.SolveResult
- Enclosing class:
RecursiveTaskSolver
public static record RecursiveTaskSolver.SolveResult(boolean success, String output, List<RecursiveTaskSolver.SolveTrace> traces, long durationMs)
extends Record
Result of a recursive solve operation.
-
Constructor Summary
ConstructorsConstructorDescriptionSolveResult(boolean success, String output, List<RecursiveTaskSolver.SolveTrace> traces, long durationMs) Creates an instance of aSolveResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionlongReturns the value of thedurationMsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.output()Returns the value of theoutputrecord component.booleansuccess()Returns the value of thesuccessrecord component.final StringtoString()Returns a string representation of this record class.traces()Returns the value of thetracesrecord component.
-
Constructor Details
-
SolveResult
public SolveResult(boolean success, String output, List<RecursiveTaskSolver.SolveTrace> traces, long durationMs) Creates an instance of aSolveResultrecord class.- Parameters:
success- the value for thesuccessrecord componentoutput- the value for theoutputrecord componenttraces- the value for thetracesrecord componentdurationMs- the value for thedurationMsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
success
public boolean success()Returns the value of thesuccessrecord component.- Returns:
- the value of the
successrecord component
-
output
Returns the value of theoutputrecord component.- Returns:
- the value of the
outputrecord component
-
traces
Returns the value of thetracesrecord component.- Returns:
- the value of the
tracesrecord component
-
durationMs
public long durationMs()Returns the value of thedurationMsrecord component.- Returns:
- the value of the
durationMsrecord component
-