Class MapConverter

java.lang.Object
redempt.redlib.config.conversion.MapConverter

public class MapConverter extends Object
A converter which saves and loads contents of a map
  • Constructor Details

    • MapConverter

      public MapConverter()
  • Method Details

    • create

      public static <K, V, M extends Map<K, V>> TypeConverter<M> create(ConversionManager manager, ConfigType<?> type)
      Creates a MapConverter
      Type Parameters:
      K - The key type of the map
      V - The value type of the map
      M - The map type
      Parameters:
      manager - The ConversionManager handling converters
      type - The ConfigType of the map with complete generic information
      Returns:
      A MapConverter for the given type