Record Class RegisterWorkspaceFolderTool.Result
java.lang.Object
java.lang.Record
com.github._1c_syntax.bsl.languageserver.mcp.tools.RegisterWorkspaceFolderTool.Result
- Record Components:
workspaceFolder- Зарегистрированная рабочая папка: еёuriнужно передавать в остальные инструменты.alreadyRegistered-true, если каталог был зарегистрирован ранее и повторная индексация не выполнялась.
- Enclosing class:
RegisterWorkspaceFolderTool
public static record RegisterWorkspaceFolderTool.Result(WorkspaceFolderDto workspaceFolder, boolean alreadyRegistered)
extends Record
Результат регистрации.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(WorkspaceFolderDto workspaceFolder, boolean alreadyRegistered) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thealreadyRegisteredrecord 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.Returns the value of theworkspaceFolderrecord component.
-
Constructor Details
-
Result
Creates an instance of aResultrecord class.- Parameters:
workspaceFolder- the value for theworkspaceFolderrecord componentalreadyRegistered- the value for thealreadyRegisteredrecord 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. -
workspaceFolder
Returns the value of theworkspaceFolderrecord component.- Returns:
- the value of the
workspaceFolderrecord component
-
alreadyRegistered
public boolean alreadyRegistered()Returns the value of thealreadyRegisteredrecord component.- Returns:
- the value of the
alreadyRegisteredrecord component
-