Record Class HistoryRecord

java.lang.Object
java.lang.Record
com.shaft.heal.internal.HistoryRecord
Record Components:
schemaVersion - history schema version
key - lookup key
pageKey - query-free page key
originalLocator - original locator
context - frame and shadow context
contextMetadata - platform and execution context metadata
fingerprint - verified element fingerprint
visualReference - optional local visual reference
updatedAt - UTC timestamp
checksum - record checksum

public record HistoryRecord(String schemaVersion, String key, String pageKey, String originalLocator, String context, HealingContext contextMetadata, LocatorFingerprint fingerprint, String visualReference, String updatedAt, String checksum) extends Record
Checksummed bounded local history record.
  • Field Details

  • Constructor Details

  • Method Details

    • withChecksum

      public HistoryRecord withChecksum(String value)
      Returns a copy with a checksum.
      Parameters:
      value - checksum
      Returns:
      checksummed record
    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • schemaVersion

      public String schemaVersion()
      Returns the value of the schemaVersion record component.
      Returns:
      the value of the schemaVersion record component
    • key

      public String key()
      Returns the value of the key record component.
      Returns:
      the value of the key record component
    • pageKey

      public String pageKey()
      Returns the value of the pageKey record component.
      Returns:
      the value of the pageKey record component
    • originalLocator

      public String originalLocator()
      Returns the value of the originalLocator record component.
      Returns:
      the value of the originalLocator record component
    • context

      public String context()
      Returns the value of the context record component.
      Returns:
      the value of the context record component
    • contextMetadata

      public HealingContext contextMetadata()
      Returns the value of the contextMetadata record component.
      Returns:
      the value of the contextMetadata record component
    • fingerprint

      public LocatorFingerprint fingerprint()
      Returns the value of the fingerprint record component.
      Returns:
      the value of the fingerprint record component
    • visualReference

      public String visualReference()
      Returns the value of the visualReference record component.
      Returns:
      the value of the visualReference record component
    • updatedAt

      public String updatedAt()
      Returns the value of the updatedAt record component.
      Returns:
      the value of the updatedAt record component
    • checksum

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