Record Class UnregisterWorkspaceFolderTool.Result
java.lang.Object
java.lang.Record
com.github._1c_syntax.bsl.languageserver.mcp.tools.UnregisterWorkspaceFolderTool.Result
- Record Components:
workspaceFolder- Рабочая папка, регистрация которой снята.stillDeclaredByRoots-true, если папка осталась в контексте сервера: её продолжает удерживать корень, объявленный клиентом через MCP roots.remaining- Рабочие папки, оставшиеся зарегистрированными.
- Enclosing class:
UnregisterWorkspaceFolderTool
public static record UnregisterWorkspaceFolderTool.Result(WorkspaceFolderDto workspaceFolder, boolean stillDeclaredByRoots, List<WorkspaceFolderDto> remaining)
extends Record
Результат удаления.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(WorkspaceFolderDto workspaceFolder, boolean stillDeclaredByRoots, List<WorkspaceFolderDto> remaining) Creates an instance of aResultrecord 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 theremainingrecord component.booleanReturns the value of thestillDeclaredByRootsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworkspaceFolderrecord component.
-
Constructor Details
-
Result
public Result(WorkspaceFolderDto workspaceFolder, boolean stillDeclaredByRoots, List<WorkspaceFolderDto> remaining) Creates an instance of aResultrecord class.- Parameters:
workspaceFolder- the value for theworkspaceFolderrecord componentstillDeclaredByRoots- the value for thestillDeclaredByRootsrecord componentremaining- the value for theremainingrecord 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
-
stillDeclaredByRoots
public boolean stillDeclaredByRoots()Returns the value of thestillDeclaredByRootsrecord component.- Returns:
- the value of the
stillDeclaredByRootsrecord component
-
remaining
-