Class CollectionConverters.ArrayToList<T>

    • Constructor Summary

      Constructors 
      Constructor Description
      ArrayToList()  
    • Constructor Detail

      • ArrayToList

        public ArrayToList()
    • Method Detail

      • canConvert

        public boolean canConvert​(java.lang.Class<?> sourceClass,
                                  java.lang.Class<?> targetClass)
        Description copied from interface: Converter
        Returns true if this object can convert sourceClass to targetClass.

        Implementations can accomodate class hierarchy ranges by converting super classes or interfaces.

        Specified by:
        canConvert in interface Converter<T[],​java.util.List<T>>
        Overrides:
        canConvert in class AbstractConverter<T[],​java.util.List<T>>
        Parameters:
        sourceClass - The source Class
        targetClass - The target Class
        Returns:
        true if this object can convert sourceClass to targetClass.
      • convert

        public java.util.List<T> convert​(T[] obj)
                                  throws ConversionException
        Description copied from interface: Converter
        Converts obj to T.
        Parameters:
        obj - The source Object to convert
        Returns:
        The converted Object
        Throws:
        ConversionException