Package ch.so.agi.mcp.constraint
Record Class ConstraintSourceEditService.PreparedInsertion
java.lang.Object
java.lang.Record
ch.so.agi.mcp.constraint.ConstraintSourceEditService.PreparedInsertion
- Enclosing class:
ConstraintSourceEditService
public static record ConstraintSourceEditService.PreparedInsertion(String updatedModelText, List<ConstraintSourceEditService.SourceEdit> sourceEdits)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionPreparedInsertion(String updatedModelText, List<ConstraintSourceEditService.SourceEdit> sourceEdits) Creates an instance of aPreparedInsertionrecord class. -
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.Returns the value of thesourceEditsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatedModelTextrecord component.
-
Constructor Details
-
PreparedInsertion
public PreparedInsertion(String updatedModelText, List<ConstraintSourceEditService.SourceEdit> sourceEdits) Creates an instance of aPreparedInsertionrecord class.- Parameters:
updatedModelText- the value for theupdatedModelTextrecord componentsourceEdits- the value for thesourceEditsrecord component
-
-
Method Details
-
sourceEdit
-
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). -
updatedModelText
Returns the value of theupdatedModelTextrecord component.- Returns:
- the value of the
updatedModelTextrecord component
-
sourceEdits
Returns the value of thesourceEditsrecord component.- Returns:
- the value of the
sourceEditsrecord component
-