Module aya.javacs.protocol
Package org.javacs.lsp
Record Class ServerCapabilities.WorkspaceFoldersOptions
java.lang.Object
java.lang.Record
org.javacs.lsp.ServerCapabilities.WorkspaceFoldersOptions
- Enclosing class:
- ServerCapabilities
public static record ServerCapabilities.WorkspaceFoldersOptions(boolean supported, boolean changeNotifications)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionWorkspaceFoldersOptions(boolean supported, boolean changeNotifications) Creates an instance of aWorkspaceFoldersOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of thechangeNotificationsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of thesupportedrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WorkspaceFoldersOptions
public WorkspaceFoldersOptions(boolean supported, boolean changeNotifications) Creates an instance of aWorkspaceFoldersOptionsrecord class.- Parameters:
supported- the value for thesupportedrecord componentchangeNotifications- the value for thechangeNotificationsrecord 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. All components in this record class are compared with '=='. -
supported
public boolean supported()Returns the value of thesupportedrecord component.- Returns:
- the value of the
supportedrecord component
-
changeNotifications
public boolean changeNotifications()Returns the value of thechangeNotificationsrecord component.- Returns:
- the value of the
changeNotificationsrecord component
-