Package qupath.lib.classifiers.object
Class ObjectClassifiers.ObjectClassifierTypeAdapterFactory
java.lang.Object
qupath.lib.classifiers.object.ObjectClassifiers.ObjectClassifierTypeAdapterFactory
- All Implemented Interfaces:
TypeAdapterFactory
- Enclosing class:
ObjectClassifiers
public static class ObjectClassifiers.ObjectClassifierTypeAdapterFactory
extends Object
implements TypeAdapterFactory
TypeAdapterFactory
to help with serializing ObjectClassifiers to and from JSON.-
Method Summary
Modifier and TypeMethodDescription<T> TypeAdapter
<T> static void
registerSubtype
(Class<? extends ObjectClassifier> cls) Register a newObjectClassifier
subtype for compatibility with Gson serialization.
-
Method Details
-
registerSubtype
Register a newObjectClassifier
subtype for compatibility with Gson serialization.- Parameters:
cls
-
-
create
- Specified by:
create
in interfaceTypeAdapterFactory
-