Package ch.so.agi.mcp.constraint
Record Class ConstraintSourceEditService.SourceEdit
java.lang.Object
java.lang.Record
ch.so.agi.mcp.constraint.ConstraintSourceEditService.SourceEdit
- Enclosing class:
ConstraintSourceEditService
-
Constructor Summary
ConstructorsConstructorDescriptionSourceEdit(int startOffset, int endOffset, int startLine, int endLine, String before, String after, String description) Creates an instance of aSourceEditrecord class. -
Method Summary
Modifier and TypeMethodDescriptionafter()Returns the value of theafterrecord component.before()Returns the value of thebeforerecord component.Returns the value of thedescriptionrecord component.intendLine()Returns the value of theendLinerecord component.intReturns the value of theendOffsetrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thestartLinerecord component.intReturns the value of thestartOffsetrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SourceEdit
public SourceEdit(int startOffset, int endOffset, int startLine, int endLine, String before, String after, String description) Creates an instance of aSourceEditrecord class.- Parameters:
startOffset- the value for thestartOffsetrecord componentendOffset- the value for theendOffsetrecord componentstartLine- the value for thestartLinerecord componentendLine- the value for theendLinerecord componentbefore- the value for thebeforerecord componentafter- the value for theafterrecord componentdescription- the value for thedescriptionrecord 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 '=='. -
startOffset
public int startOffset()Returns the value of thestartOffsetrecord component.- Returns:
- the value of the
startOffsetrecord component
-
endOffset
public int endOffset()Returns the value of theendOffsetrecord component.- Returns:
- the value of the
endOffsetrecord component
-
startLine
public int startLine()Returns the value of thestartLinerecord component.- Returns:
- the value of the
startLinerecord component
-
endLine
public int endLine()Returns the value of theendLinerecord component.- Returns:
- the value of the
endLinerecord component
-
before
Returns the value of thebeforerecord component.- Returns:
- the value of the
beforerecord component
-
after
Returns the value of theafterrecord component.- Returns:
- the value of the
afterrecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-