Record Class McpMobileStepSummary

java.lang.Object
java.lang.Record
com.shaft.mcp.McpMobileStepSummary
Record Components:
stepId - stable identity assigned at record time; never changes or is reused
sequence - current display position (1..N), renumbered after every delete/reorder
action - recorded action name
locatorStrategy - recorded locator strategy name, blank for coordinate-based actions
locatorValue - recorded locator value
risky - whether this step carries replay warnings
warnings - step-level replay warnings

public record McpMobileStepSummary(String stepId, long sequence, String action, String locatorStrategy, String locatorValue, boolean risky, List<String> warnings) extends Record
Summary of one recorded mobile step, surfaced in McpMobileRecordingStatus so an agent can target McpMobileRecordingService.deleteStep(String) or McpMobileRecordingService.reorderStep(String, String) by stable stepId without re-reading the persisted recording file.
  • Constructor Details

    • McpMobileStepSummary

      public McpMobileStepSummary(String stepId, long sequence, String action, String locatorStrategy, String locatorValue, boolean risky, List<String> warnings)
      Creates an immutable step summary.
  • 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.
    • stepId

      public String stepId()
      Returns the value of the stepId record component.
      Returns:
      the value of the stepId record component
    • sequence

      public long sequence()
      Returns the value of the sequence record component.
      Returns:
      the value of the sequence record component
    • action

      public String action()
      Returns the value of the action record component.
      Returns:
      the value of the action record component
    • locatorStrategy

      public String locatorStrategy()
      Returns the value of the locatorStrategy record component.
      Returns:
      the value of the locatorStrategy record component
    • locatorValue

      public String locatorValue()
      Returns the value of the locatorValue record component.
      Returns:
      the value of the locatorValue record component
    • risky

      public boolean risky()
      Returns the value of the risky record component.
      Returns:
      the value of the risky record component
    • warnings

      public List<String> warnings()
      Returns the value of the warnings record component.
      Returns:
      the value of the warnings record component