List of usage examples for com.google.gson TypeAdapterFactory interface-usage
From source file org.apache.zeppelin.json.NotebookTypeAdapterFactory.java
/**
* Custom adapter type factory
* Modify the jsonObject before serailaization/deserialization
* Check sample implementation at {@link NotebookServer}
* @param <C> the type whose json is to be customized for serialization/deserialization
*/
From source file org.apache.zeppelin.notebook.json.NotebookTypeAdapterFactory.java
/** * Custom adapter type factory * Modify the jsonObject before serailaization/deserialization * @param <C> the type whose json is to be customized for serialization/deserialization */ public class NotebookTypeAdapterFactory<C> implements TypeAdapterFactory {
From source file org.arl.fjage.remote.ArrayAdapterFactory.java
/**
* Array adapter factory for custom JSON representation.
*
* Numeric arrays are compressed into a base 64 notation for quick transmission
* over a network.
*/
From source file org.arl.fjage.remote.GenericValueAdapterFactory.java
/**
* Array adapter factory for custom JSON representation.
*
* Numeric arrays are compressed into a base 64 notation for quick transmission
* over a network.
*/
From source file org.arl.fjage.remote.MessageAdapterFactory.java
/**
* Message adapter for custom JSON representation.
*
* This adapter adds a "clazz" property to the JSON representation of the message,
* representing the fully qualified message class name. This enables the message to
* be unmarshalled into the appropriate message class at the destination.
From source file org.baeldung.gson.advance.RuntimeTypeAdapterFactory.java
/**
* Adapts values whose runtime type may differ from their declaration type. This
* is necessary when a field's type is not the same type that GSON should create
* when deserializing that field. For example, consider these types:
* <pre> {@code
* abstract class Shape {
From source file org.cemantika.testing.util.RuntimeTypeAdapterFactory.java
/**
* Adapts values whose runtime type may differ from their declaration type. This
* is necessary when a field's type is not the same type that GSON should create
* when deserializing that field. For example, consider these types:
* <pre> {@code
* abstract class Shape {
From source file org.codice.admin.router.RuntimeTypeAdapterFactory.java
/**
* Adapts values whose runtime type may differ from their declaration type. This
* is necessary when a field's type is not the same type that GSON should create
* when deserializing that field. For example, consider these types:
* <pre> {@code
* abstract class Shape {
From source file org.eclipse.che.dto.server.SerializableInterfaceAdapterFactory.java
/** * This adapter is required for fields of {@link java.io.Serializable} type to be treated as {@link * Object} */ public class SerializableInterfaceAdapterFactory implements TypeAdapterFactory {
From source file org.eclipse.lsp4j.adapters.CodeActionResponseAdapter.java
public class CodeActionResponseAdapter implements TypeAdapterFactory { private static final TypeToken<Either<Command, CodeAction>> ELEMENT_TYPE = new TypeToken<Either<Command, CodeAction>>() { }; @SuppressWarnings("unchecked")