# addCollectionConverters static method

void addCollectionConverters(

1. ConverterRegistry registry

)

Add common collection converters.

## Implementation

    static void addCollectionConverters(ConverterRegistry registry) {
      final conversionService = registry as ConversionService;

      registry.addPairedConverter(StringGenericConverter());
      registry.addPairedConverter(DoubleGenericConverter());
      registry.addPairedConverter(IntGenericConverter());

      // Object converters
      registry.addPairedConverter(ObjectToListConverter(conversionService));
      registry.addPairedConverter(ObjectToSetConverter(conversionService));
      registry.addPairedConverter(ListToObjectConverter(conversionService));
      registry.addPairedConverter(SetToObjectConverter(conversionService));

      registry.addPairedConverter(SetToCollectionGenericConverter(conversionService));
      registry.addPairedConverter(QueueToCollectionGenericConverter(conversionService));
      registry.addPairedConverter(IterableToCollectionGenericConverter(conversionService));
      registry.addPairedConverter(ArrayListToCollectionGenericConverter(conversionService));
      registry.addPairedConverter(SetBaseToCollectionGenericConverter(conversionService));
      registry.addPairedConverter(ListBaseToCollectionConverter(conversionService));
      registry.addPairedConverter(LinkedQueueToCollectionGenericConverter(conversionService));
      registry.addPairedConverter(LinkedListToCollectionGenericConverter(conversionService));
      registry.addPairedConverter(LinkedHashSetToCollectionGenericConverter(conversionService));
      registry.addPairedConverter(HashSetToCollectionGenericConverter(conversionService));
      registry.addPairedConverter(StackToCollectionGenericConverter(conversionService));
      registry.addPairedConverter(LinkedStackToCollectionGenericConverter(conversionService));
      registry.addPairedConverter(IterableToCollectionGenericConverter(conversionService));
      registry.addPairedConverter(ArrayListToCollectionGenericConverter(conversionService));
      registry.addPairedConverter(SetBaseToCollectionGenericConverter(conversionService));
      registry.addPairedConverter(ListBaseToCollectionConverter(conversionService));
      registry.addPairedConverter(LinkedQueueToCollectionGenericConverter(conversionService));
      registry.addPairedConverter(LinkedListToCollectionGenericConverter(conversionService));
      registry.addPairedConverter(LinkedHashSetToCollectionGenericConverter(conversionService));
      registry.addPairedConverter(HashSetToCollectionGenericConverter(conversionService));
      registry.addPairedConverter(StackToCollectionGenericConverter(conversionService));
      registry.addPairedConverter(LinkedStackToCollectionGenericConverter(conversionService));
      registry.addPairedConverter(ListToCollectionConverter(conversionService));
    }