Record Class HistoryDocument
java.lang.Object
java.lang.Record
com.shaft.heal.internal.HistoryDocument
- Record Components:
schemaVersion- document schema versionrecords- retained history records
Versioned local history document.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHistoryDocument(String schemaVersion, List<HistoryRecord> records) Creates an immutable document. -
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.records()Returns the value of therecordsrecord component.Returns the value of theschemaVersionrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CURRENT_SCHEMA_VERSION
- See Also:
-
-
Constructor Details
-
HistoryDocument
Creates an immutable document.
-
-
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
-
records
-