Class AbstractExtraPropertiesJsonAdapter<T>


  • public abstract class AbstractExtraPropertiesJsonAdapter<T>
    extends com.google.gson.TypeAdapter<T>
    • Constructor Detail

      • AbstractExtraPropertiesJsonAdapter

        public AbstractExtraPropertiesJsonAdapter​(Map<String,​? extends org.hibernate.search.backend.elasticsearch.gson.impl.AbstractExtraPropertiesJsonAdapter.FieldAdapter<? super T>> fieldAdapters,
                                                  org.hibernate.search.backend.elasticsearch.gson.impl.AbstractExtraPropertiesJsonAdapter.ExtraPropertyAdapter<? super T> extraPropertyAdapter)
    • Method Detail

      • read

        public T read​(com.google.gson.stream.JsonReader in)
               throws IOException
        Specified by:
        read in class com.google.gson.TypeAdapter<T>
        Throws:
        IOException
      • write

        public void write​(com.google.gson.stream.JsonWriter out,
                          T instance)
                   throws IOException
        Specified by:
        write in class com.google.gson.TypeAdapter<T>
        Throws:
        IOException
      • createInstance

        protected abstract T createInstance()