Top Fields Constructors Methods
org.eclipse.lsp4j.adapters

public Class DocumentChangeListAdapter

extends Object
implements TypeAdapterFactory
Class Inheritance
All Implemented Interfaces
com.google.gson.TypeAdapterFactory
Imports
java.util.ArrayList, org.eclipse.lsp4j.ResourceOperation, .TextDocumentEdit, org.eclipse.lsp4j.jsonrpc.json.adapters.CollectionTypeAdapter, .EitherTypeAdapter, .EitherTypeAdapter.PropertyChecker, org.eclipse.lsp4j.jsonrpc.messages.Either, com.google.gson.Gson, .TypeAdapter, .TypeAdapterFactory, com.google.gson.reflect.TypeToken

Field Summary

Modifier and TypeField and Description
private static final TypeToken<Either<TextDocumentEdit, ResourceOperation>>

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public <T> TypeAdapter<T>
create(Gson gson, TypeToken<T> type)

Implements com.google.gson.TypeAdapterFactory.create.

Returns a type adapter for type, or null if this factory doesn't support type.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ELEMENT_TYPEback to summary
private static final TypeToken<Either<TextDocumentEdit, ResourceOperation>> ELEMENT_TYPE

Constructor Detail

DocumentChangeListAdapterback to summary
public DocumentChangeListAdapter()

Method Detail

createback to summary
public <T> TypeAdapter<T> create(Gson gson, TypeToken<T> type)

Implements com.google.gson.TypeAdapterFactory.create.

Doc from com.google.gson.TypeAdapterFactory.create.

Returns a type adapter for type, or null if this factory doesn't support type.

Annotations
@SuppressWarnings:unchecked
@Override