Package io.jmix.dynmodelai.model
Record Class EditorModelSnapshot
java.lang.Object
java.lang.Record
io.jmix.dynmodelai.model.EditorModelSnapshot
public record EditorModelSnapshot(@Nullable UUID baselineSettingsId, String baselineContent, String candidateYaml)
extends Record
Complete unpublished editor content and the published revision from which editing started.
Captured for one request; never supplied to the language model as YAML.
-
Constructor Summary
ConstructorsConstructorDescriptionEditorModelSnapshot(@Nullable UUID baselineSettingsId, String baselineContent, String candidateYaml) Creates an instance of aEditorModelSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebaselineContentrecord component.@Nullable UUIDReturns the value of thebaselineSettingsIdrecord component.Returns the value of thecandidateYamlrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EditorModelSnapshot
public EditorModelSnapshot(@Nullable UUID baselineSettingsId, String baselineContent, String candidateYaml) Creates an instance of aEditorModelSnapshotrecord class.- Parameters:
baselineSettingsId- the value for thebaselineSettingsIdrecord componentbaselineContent- the value for thebaselineContentrecord componentcandidateYaml- the value for thecandidateYamlrecord component
-
-
Method Details
-
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. -
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. -
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). -
baselineSettingsId
Returns the value of thebaselineSettingsIdrecord component.- Returns:
- the value of the
baselineSettingsIdrecord component
-
baselineContent
Returns the value of thebaselineContentrecord component.- Returns:
- the value of the
baselineContentrecord component
-
candidateYaml
Returns the value of thecandidateYamlrecord component.- Returns:
- the value of the
candidateYamlrecord component
-