Package redempt.redlib.config.conversion
Class CollectionConverter
java.lang.Object
redempt.redlib.config.conversion.CollectionConverter
A converter which saves and loads contents of a collection
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <V,
T extends Collection<V>>
TypeConverter<T>create
(ConversionManager manager, ConfigType<?> collectionType) Creates a collection converter
-
Constructor Details
-
CollectionConverter
public CollectionConverter()
-
-
Method Details
-
create
public static <V,T extends Collection<V>> TypeConverter<T> create(ConversionManager manager, ConfigType<?> collectionType) Creates a collection converter- Type Parameters:
V
- The component type of the collectionT
- The collection type- Parameters:
manager
- The ConfigManager handling the datacollectionType
- The ConfigType of the collection with full generic info- Returns:
- A collection converter
-