Top Fields Constructors Methods
org.eclipse.lsp4j.adapters

public Class LocationLinkListAdapter

extends Object
implements TypeAdapterFactory
Class Inheritance
All Implemented Interfaces
com.google.gson.TypeAdapterFactory
Imports
java.util.List, org.eclipse.lsp4j.Location, .LocationLink, org.eclipse.lsp4j.jsonrpc.json.adapters.EitherTypeAdapter, .EitherTypeAdapter.ListChecker, .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<List<? extends Location>, List<? extends LocationLink>>>

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

EITHER_TYPEback to summary
private static final TypeToken<Either<List<? extends Location>, List<? extends LocationLink>>> EITHER_TYPE

Constructor Detail

LocationLinkListAdapterback to summary
public LocationLinkListAdapter()

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