Package redempt.redlib.config.conversion
Class MapConverter
java.lang.Object
redempt.redlib.config.conversion.MapConverter
A converter which saves and loads contents of a map
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <K,
V, M extends Map<K, V>>
TypeConverter<M>create
(ConversionManager manager, ConfigType<?> type) Creates a MapConverter
-
Constructor Details
-
MapConverter
public MapConverter()
-
-
Method Details
-
create
public static <K,V, TypeConverter<M> createM extends Map<K, V>> (ConversionManager manager, ConfigType<?> type) Creates a MapConverter- Type Parameters:
K
- The key type of the mapV
- The value type of the mapM
- The map type- Parameters:
manager
- The ConversionManager handling converterstype
- The ConfigType of the map with complete generic information- Returns:
- A MapConverter for the given type
-