Record Class RangeDto
java.lang.Object
java.lang.Record
com.github._1c_syntax.bsl.languageserver.mcp.dto.RangeDto
- Record Components:
startLine- Начальная строка.startCharacter- Начальный символ в строке.endLine- Конечная строка.endCharacter- Конечный символ в строке.
public record RangeDto(int startLine, int startCharacter, int endLine, int endCharacter)
extends Record
Диапазон в тексте (нумерация строк и символов с нуля, как в LSP).
-
Constructor Summary
ConstructorsConstructorDescriptionRangeDto(int startLine, int startCharacter, int endLine, int endCharacter) Creates an instance of aRangeDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theendCharacterrecord component.intendLine()Returns the value of theendLinerecord component.final booleanIndicates whether some other object is "equal to" this one.static RangeDtofinal inthashCode()Returns a hash code value for this object.intReturns the value of thestartCharacterrecord component.intReturns the value of thestartLinerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RangeDto
public RangeDto(int startLine, int startCharacter, int endLine, int endCharacter) Creates an instance of aRangeDtorecord class.- Parameters:
startLine- the value for thestartLinerecord componentstartCharacter- the value for thestartCharacterrecord componentendLine- the value for theendLinerecord componentendCharacter- the value for theendCharacterrecord component
-
-
Method Details
-
from
-
toString
-
hashCode
-
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 with thecomparemethod from their corresponding wrapper classes. -
startLine
-
startCharacter
public int startCharacter()Returns the value of thestartCharacterrecord component.- Returns:
- the value of the
startCharacterrecord component
-
endLine
-
endCharacter
public int endCharacter()Returns the value of theendCharacterrecord component.- Returns:
- the value of the
endCharacterrecord component
-