Record Class McpMobileToolchainDiagnostic

java.lang.Object
java.lang.Record
com.shaft.mcp.McpMobileToolchainDiagnostic
Record Components:
dependencyId - stable machine-readable dependency identifier
available - whether the dependency is ready for use
detectedPath - resolved executable or installation path when available
detectedVersion - detected version when the tool reports one
failureCause - human-readable explanation when the dependency is unavailable
repairGuidance - command or manual action that can make the dependency available

public record McpMobileToolchainDiagnostic(String dependencyId, boolean available, String detectedPath, String detectedVersion, String failureCause, String repairGuidance) extends Record
Diagnostic details for one local mobile toolchain dependency.
  • Constructor Details

    • McpMobileToolchainDiagnostic

      public McpMobileToolchainDiagnostic(String dependencyId, boolean available, String detectedPath, String detectedVersion, String failureCause, String repairGuidance)
      Creates an immutable dependency diagnostic.
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • dependencyId

      public String dependencyId()
      Returns the value of the dependencyId record component.
      Returns:
      the value of the dependencyId record component
    • available

      public boolean available()
      Returns the value of the available record component.
      Returns:
      the value of the available record component
    • detectedPath

      public String detectedPath()
      Returns the value of the detectedPath record component.
      Returns:
      the value of the detectedPath record component
    • detectedVersion

      public String detectedVersion()
      Returns the value of the detectedVersion record component.
      Returns:
      the value of the detectedVersion record component
    • failureCause

      public String failureCause()
      Returns the value of the failureCause record component.
      Returns:
      the value of the failureCause record component
    • repairGuidance

      public String repairGuidance()
      Returns the value of the repairGuidance record component.
      Returns:
      the value of the repairGuidance record component