Package org.eclipse.lsp4j
Class ProgressParams
- java.lang.Object
-
- org.eclipse.lsp4j.ProgressParams
-
public class ProgressParams extends java.lang.ObjectThe base protocol offers also support to report progress in a generic fashion. This mechanism can be used to report any kind of progress including work done progress (usually used to report progress in the user interface using a progress bar) and partial result progress to support streaming of results. A progress notification has the following properties:Since 3.15.0
-
-
Constructor Summary
Constructors Constructor Description ProgressParams()ProgressParams(org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.lang.Integer> token, org.eclipse.lsp4j.jsonrpc.messages.Either<WorkDoneProgressNotification,java.lang.Object> value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.lang.Integer>getToken()The progress token provided by the client or server.org.eclipse.lsp4j.jsonrpc.messages.Either<WorkDoneProgressNotification,java.lang.Object>getValue()The progress data.inthashCode()voidsetToken(java.lang.Integer token)voidsetToken(java.lang.String token)voidsetToken(org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.lang.Integer> token)The progress token provided by the client or server.voidsetValue(org.eclipse.lsp4j.jsonrpc.messages.Either<WorkDoneProgressNotification,java.lang.Object> value)The progress data.java.lang.StringtoString()
-
-
-
Constructor Detail
-
ProgressParams
public ProgressParams()
-
ProgressParams
public ProgressParams(org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.lang.Integer> token, org.eclipse.lsp4j.jsonrpc.messages.Either<WorkDoneProgressNotification,java.lang.Object> value)
-
-
Method Detail
-
getToken
public org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.lang.Integer> getToken()
The progress token provided by the client or server.
-
setToken
public void setToken(org.eclipse.lsp4j.jsonrpc.messages.Either<java.lang.String,java.lang.Integer> token)
The progress token provided by the client or server.
-
setToken
public void setToken(java.lang.String token)
-
setToken
public void setToken(java.lang.Integer token)
-
getValue
public org.eclipse.lsp4j.jsonrpc.messages.Either<WorkDoneProgressNotification,java.lang.Object> getValue()
The progress data.
-
setValue
public void setValue(org.eclipse.lsp4j.jsonrpc.messages.Either<WorkDoneProgressNotification,java.lang.Object> value)
The progress data.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-