Record Class PlanningModelSnapshot
java.lang.Object
java.lang.Record
io.jmix.dynmodelai.agent.planning.PlanningModelSnapshot
public record PlanningModelSnapshot(DynamicModelDefinition baseline, DynamicModelDefinition candidate, boolean editorSnapshot)
extends Record
Definitions captured together for planning; no workspace is created by reading them.
-
Constructor Summary
ConstructorsConstructorDescriptionPlanningModelSnapshot(DynamicModelDefinition baseline, DynamicModelDefinition candidate) PlanningModelSnapshot(DynamicModelDefinition baseline, DynamicModelDefinition candidate, boolean editorSnapshot) Creates an instance of aPlanningModelSnapshotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbaseline()Returns the value of thebaselinerecord component.Returns the value of thecandidaterecord component.booleanReturns the value of theeditorSnapshotrecord 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.boolean
-
Constructor Details
-
PlanningModelSnapshot
-
PlanningModelSnapshot
public PlanningModelSnapshot(DynamicModelDefinition baseline, DynamicModelDefinition candidate, boolean editorSnapshot) Creates an instance of aPlanningModelSnapshotrecord class.- Parameters:
baseline- the value for thebaselinerecord componentcandidate- the value for thecandidaterecord componenteditorSnapshot- the value for theeditorSnapshotrecord component
-
-
Method Details
-
unpublished
public boolean unpublished() -
changedEntityNames
-
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 '=='. -
baseline
Returns the value of thebaselinerecord component.- Returns:
- the value of the
baselinerecord component
-
candidate
Returns the value of thecandidaterecord component.- Returns:
- the value of the
candidaterecord component
-
editorSnapshot
public boolean editorSnapshot()Returns the value of theeditorSnapshotrecord component.- Returns:
- the value of the
editorSnapshotrecord component
-