Class CollectionConverter

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

public class CollectionConverter extends Object
A converter which saves and loads contents of a collection
  • 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 collection
      T - The collection type
      Parameters:
      manager - The ConfigManager handling the data
      collectionType - The ConfigType of the collection with full generic info
      Returns:
      A collection converter