Record Class FindReferencesTool.Result
java.lang.Object
java.lang.Record
com.github._1c_syntax.bsl.languageserver.mcp.tools.FindReferencesTool.Result
- Record Components:
file- Путь к файлу.referencesCount- Количество найденных ссылок.references- Список местоположений ссылок.
- Enclosing class:
FindReferencesTool
public static record FindReferencesTool.Result(String file, int referencesCount, List<LocationDto> references)
extends Record
Результат поиска ссылок.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(String file, int referencesCount, List<LocationDto> references) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thereferencesrecord component.intReturns the value of thereferencesCountrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
Creates an instance of aResultrecord class.- Parameters:
file- the value for thefilerecord componentreferencesCount- the value for thereferencesCountrecord componentreferences- the value for thereferencesrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
file
-
referencesCount
public int referencesCount()Returns the value of thereferencesCountrecord component.- Returns:
- the value of the
referencesCountrecord component
-
references
Returns the value of thereferencesrecord component.- Returns:
- the value of the
referencesrecord component
-