org.hibernate.search.elasticsearch.util.impl.gson

## Class ES2FieldDataTypeJsonAdapter

- java.lang.Object
- - com.google.gson.TypeAdapter<FieldDataType>
  - - org.hibernate.search.elasticsearch.util.impl.gson.ES2FieldDataTypeJsonAdapter

-     public class ES2FieldDataTypeJsonAdapter
      extends com.google.gson.TypeAdapter<FieldDataType>

  Author:
    Yoann Rodiere

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ES2FieldDataTypeJsonAdapter()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `FieldDataType` | `read(com.google.gson.stream.JsonReader in)`
    `void` | `write(com.google.gson.stream.JsonWriter out, FieldDataType value)`

    - ### Methods inherited from class com.google.gson.TypeAdapter

      `fromJson, fromJson, fromJsonTree, nullSafe, toJson, toJson, toJsonTree`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### ES2FieldDataTypeJsonAdapter

          public ES2FieldDataTypeJsonAdapter()

  - ### Method Detail

    - #### write

          public void write(com.google.gson.stream.JsonWriter out,
                            FieldDataType value)
                     throws IOException

      Specified by:
        `write` in class `com.google.gson.TypeAdapter<FieldDataType>`
      Throws:
        `IOException`

    - #### read

          public FieldDataType read(com.google.gson.stream.JsonReader in)
                             throws IOException

      Specified by:
        `read` in class `com.google.gson.TypeAdapter<FieldDataType>`
      Throws:
        `IOException`

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved