Package org.javers.core.json
Class JsonTypeAdapterTemplate<T>
- java.lang.Object
-
- org.javers.core.json.JsonTypeAdapterTemplate<T>
-
- All Implemented Interfaces:
JsonTypeAdapter<T>
- Direct Known Subclasses:
BasicStringTypeAdapter
,CdoSnapshotStateTypeAdapter
public abstract class JsonTypeAdapterTemplate<T> extends java.lang.Object implements JsonTypeAdapter<T>
-
-
Constructor Summary
Constructors Constructor Description JsonTypeAdapterTemplate()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract java.lang.Class
getValueType()
java.util.List<java.lang.Class>
getValueTypes()
Target class (or classes), typicallyValueType
orCustomType
.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.javers.core.json.JsonTypeAdapter
fromJson, toJson
-
-
-
-
Method Detail
-
getValueType
public abstract java.lang.Class getValueType()
-
getValueTypes
public java.util.List<java.lang.Class> getValueTypes()
Description copied from interface:JsonTypeAdapter
Target class (or classes), typicallyValueType
orCustomType
.
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.
- Specified by:
getValueTypes
in interfaceJsonTypeAdapter<T>
-
-