Class JsonTypeAdapterTemplate<T>

java.lang.Object
org.javers.core.json.JsonTypeAdapterTemplate<T>
All Implemented Interfaces:
AbstractJsonTypeAdapter, JsonTypeAdapter<T>
Direct Known Subclasses:
BasicStringTypeAdapter, CdoSnapshotStateTypeAdapter

public abstract class JsonTypeAdapterTemplate<T> extends Object implements JsonTypeAdapter<T>
  • Constructor Details

    • JsonTypeAdapterTemplate

      public JsonTypeAdapterTemplate()
  • Method Details

    • getValueType

      public abstract Class getValueType()
    • getValueTypes

      public List<Class> getValueTypes()
      Description copied from interface: JsonTypeAdapter
      Target class (or classes), typically ValueType or CustomType.
      Each target class should have a no-argument constructor (public or private).

      If adapter is designed to handle single class, should return a List with one element — a supported class.
      If adapter is polymorphic, should return all supported classes.

      Specified by:
      getValueTypes in interface JsonTypeAdapter<T>