Record Class HistoryRecord
java.lang.Object
java.lang.Record
com.shaft.heal.internal.HistoryRecord
- Record Components:
schemaVersion- history schema versionkey- lookup keypageKey- query-free page keyoriginalLocator- original locatorcontext- frame and shadow contextcontextMetadata- platform and execution context metadatafingerprint- verified element fingerprintvisualReference- optional local visual referenceupdatedAt- UTC timestampchecksum- record checksum
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHistoryRecord(String schemaVersion, String key, String pageKey, String originalLocator, String context, HealingContext contextMetadata, LocatorFingerprint fingerprint, String visualReference, String updatedAt, String checksum) Creates an immutable history record.HistoryRecord(String schemaVersion, String key, String pageKey, String originalLocator, String context, LocatorFingerprint fingerprint, String visualReference, String updatedAt, String checksum) Creates a backward-compatible web-only history record. -
Method Summary
Modifier and TypeMethodDescriptionchecksum()Returns the value of thechecksumrecord component.context()Returns the value of thecontextrecord component.Returns the value of thecontextMetadatarecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefingerprintrecord component.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.Returns the value of theoriginalLocatorrecord component.pageKey()Returns the value of thepageKeyrecord component.Returns the value of theschemaVersionrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatedAtrecord component.Returns the value of thevisualReferencerecord component.withChecksum(String value) Returns a copy with a checksum.
-
Field Details
-
CURRENT_SCHEMA_VERSION
- See Also:
-
-
Constructor Details
-
HistoryRecord
-
HistoryRecord
public HistoryRecord(String schemaVersion, String key, String pageKey, String originalLocator, String context, HealingContext contextMetadata, LocatorFingerprint fingerprint, String visualReference, String updatedAt, String checksum) Creates an immutable history record.
-
-
Method Details
-
withChecksum
Returns a copy with a checksum.- Parameters:
value- checksum- Returns:
- checksummed record
-
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
-
key
-
pageKey
-
originalLocator
Returns the value of theoriginalLocatorrecord component.- Returns:
- the value of the
originalLocatorrecord component
-
context
-
contextMetadata
Returns the value of thecontextMetadatarecord component.- Returns:
- the value of the
contextMetadatarecord component
-
fingerprint
Returns the value of thefingerprintrecord component.- Returns:
- the value of the
fingerprintrecord component
-
visualReference
Returns the value of thevisualReferencerecord component.- Returns:
- the value of the
visualReferencerecord component
-
updatedAt
-
checksum
-