Package org.javers.core.json
Class JsonTypeAdapterTemplate<T>
java.lang.Object
org.javers.core.json.JsonTypeAdapterTemplate<T>
- All Implemented Interfaces:
AbstractJsonTypeAdapter,JsonTypeAdapter<T>
- Direct Known Subclasses:
BasicStringTypeAdapter,CdoSnapshotStateTypeAdapter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ClassTarget class (or classes), typicallyValueTypeorCustomType.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.javers.core.json.JsonTypeAdapter
fromJson, toJson
-
Constructor Details
-
JsonTypeAdapterTemplate
public JsonTypeAdapterTemplate()
-
-
Method Details
-
getValueType
-
getValueTypes
Description copied from interface:JsonTypeAdapterTarget class (or classes), typicallyValueTypeorCustomType.
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:
getValueTypesin interfaceJsonTypeAdapter<T>
-