Package ch.so.agi.gretl.doclet.lsp
Record Class LspFileMetadata
java.lang.Object
java.lang.Record
ch.so.agi.gretl.doclet.lsp.LspFileMetadata
-
Constructor Summary
ConstructorsConstructorDescriptionLspFileMetadata(String role, List<String> extensions, boolean multiple, boolean mustExist) Creates an instance of aLspFileMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theextensionsrecord component.final inthashCode()Returns a hash code value for this object.booleanmultiple()Returns the value of themultiplerecord component.booleanReturns the value of themustExistrecord component.role()Returns the value of therolerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LspFileMetadata
Creates an instance of aLspFileMetadatarecord class.- Parameters:
role- the value for therolerecord componentextensions- the value for theextensionsrecord componentmultiple- the value for themultiplerecord componentmustExist- the value for themustExistrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
role
Returns the value of therolerecord component.- Returns:
- the value of the
rolerecord component
-
extensions
Returns the value of theextensionsrecord component.- Returns:
- the value of the
extensionsrecord component
-
multiple
public boolean multiple()Returns the value of themultiplerecord component.- Returns:
- the value of the
multiplerecord component
-
mustExist
public boolean mustExist()Returns the value of themustExistrecord component.- Returns:
- the value of the
mustExistrecord component
-