Package io.jmix.dynmodelai.model
Record Class EditorModelReview
java.lang.Object
java.lang.Record
io.jmix.dynmodelai.model.EditorModelReview
public record EditorModelReview(boolean hasChanges, boolean applyValidationPassed, List<DraftPreview> previews, ModelLabels labels, List<DraftFinding> findings)
extends Record
Current editor validation and final configurations of changed entities; does not publish or reserve a revision.
-
Constructor Summary
ConstructorsConstructorDescriptionEditorModelReview(boolean hasChanges, boolean applyValidationPassed, List<DraftPreview> previews, ModelLabels labels, List<DraftFinding> findings) Creates an instance of aEditorModelReviewrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theapplyValidationPassedrecord component.final booleanIndicates whether some other object is "equal to" this one.findings()Returns the value of thefindingsrecord component.booleanReturns the value of thehasChangesrecord component.final inthashCode()Returns a hash code value for this object.labels()Returns the value of thelabelsrecord component.previews()Returns the value of thepreviewsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EditorModelReview
public EditorModelReview(boolean hasChanges, boolean applyValidationPassed, List<DraftPreview> previews, ModelLabels labels, List<DraftFinding> findings) Creates an instance of aEditorModelReviewrecord class.- Parameters:
hasChanges- the value for thehasChangesrecord componentapplyValidationPassed- the value for theapplyValidationPassedrecord componentpreviews- the value for thepreviewsrecord componentlabels- the value for thelabelsrecord componentfindings- the value for thefindingsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
hasChanges
public boolean hasChanges()Returns the value of thehasChangesrecord component.- Returns:
- the value of the
hasChangesrecord component
-
applyValidationPassed
public boolean applyValidationPassed()Returns the value of theapplyValidationPassedrecord component.- Returns:
- the value of the
applyValidationPassedrecord component
-
previews
Returns the value of thepreviewsrecord component.- Returns:
- the value of the
previewsrecord component
-
labels
Returns the value of thelabelsrecord component.- Returns:
- the value of the
labelsrecord component
-
findings
Returns the value of thefindingsrecord component.- Returns:
- the value of the
findingsrecord component
-