Package redempt.redlib.config.conversion
Class SubclassConverter
java.lang.Object
redempt.redlib.config.conversion.SubclassConverter
A converter which can convert subclasses of mappable classes
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TypeConverter<T>
create
(ConversionManager manager, Class<T> clazz, boolean isAbstract) Creates a TypeConverter that can convert subclasses
-
Constructor Details
-
SubclassConverter
public SubclassConverter()
-
-
Method Details
-
create
public static <T> TypeConverter<T> create(ConversionManager manager, Class<T> clazz, boolean isAbstract) Creates a TypeConverter that can convert subclasses- Type Parameters:
T
- The type- Parameters:
manager
- The ConversionManager handling convertersclazz
- The class to handle subclasses ofisAbstract
- Whether the class is abstract or an interface- Returns:
- The converter
-