Record Class TraceService.McpTraceLatestResult
java.lang.Object
java.lang.Record
com.shaft.mcp.TraceService.McpTraceLatestResult
- Record Components:
schemaVersion- result schema versiontraces- trace indexes in newest-first orderwarnings- safe warnings
- Enclosing class:
TraceService
-
Constructor Summary
ConstructorsConstructorDescriptionMcpTraceLatestResult(String schemaVersion, List<TraceService.McpTraceIndexRecord> traces, List<String> warnings) Creates an immutable latest-trace result. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theschemaVersionrecord component.final StringtoString()Returns a string representation of this record class.traces()Returns the value of thetracesrecord component.warnings()Returns the value of thewarningsrecord component.
-
Constructor Details
-
McpTraceLatestResult
public McpTraceLatestResult(String schemaVersion, List<TraceService.McpTraceIndexRecord> traces, List<String> warnings) Creates an immutable latest-trace result.
-
-
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). -
schemaVersion
Returns the value of theschemaVersionrecord component.- Returns:
- the value of the
schemaVersionrecord component
-
traces
-
warnings
-