Class VersionedTextDocumentIdentifier
java.lang.Object
org.graalvm.tools.lsp.server.types.JSONBase
org.graalvm.tools.lsp.server.types.TextDocumentIdentifier
org.graalvm.tools.lsp.server.types.VersionedTextDocumentIdentifier
An identifier to denote a specific version of a text document.
-
Method Summary
Modifier and TypeMethodDescriptionCreates a new VersionedTextDocumentIdentifier literal.booleanThe version number of this document.inthashCode()setVersion(Integer version) Methods inherited from class org.graalvm.tools.lsp.server.types.TextDocumentIdentifier
create, getUri, setUri
-
Method Details
-
getVersion
The version number of this document. If a versioned text document identifier is sent from the server to the client and the file is not open in the editor (the server has not received an open notification before) the server can send `null` to indicate that the version is unknown and the content on disk is the truth (as speced with document content ownership). -
setVersion
-
equals
- Overrides:
equalsin classTextDocumentIdentifier
-
hashCode
public int hashCode()- Overrides:
hashCodein classTextDocumentIdentifier
-
create
Creates a new VersionedTextDocumentIdentifier literal.- Parameters:
uri- The document's uri.version- The document's version.
-